cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Creation of an instance of the metaclass "message" via API : naming issue

lmazurie
Honored Contributor

Dear All,

 

Via API I am trying to create instances of "Message" but I have got a naming problem.

 

The ".Add" is working but which MetaAttribute has to be used to name the message ?

 

I have no issue with object "Application" and I have tried tu use seamlessly both the MetaAttribute "Short Name" and "MetaUseCaseClassName" on MetaClass "message" ...

 

Thanks for your help

 

 

 

Lionel Mazurié
1 Reply

jhorber
MEGA
MEGA

Hello Lionel

 

Note that the naming of message is specific. You need to implement a smarter API code than usual

 

Depending of the situation storage of the message name value is different:

  • Message not based on content: Stored on the property 'MetaUseCaseClassName' of the message
  • Message based on content with name inherited from content: Stored on the property 'ContentName' of the content
  • Message based on content with local name: Stored on the property 'MetaUseCaseClassName' of the message

See KB http://community.mega.com/t5/custom/page/page-id/mega-kb-search?q=00001208&v=all

Jerome