Skip to main content

Notifications

Announcements

No record found.

Business Central forum
Suggested answer

HOW TO USE LIST OF [TEXT] AS A PARAMETER IN CreateMessage METHOD IN BC 150

Posted on by Microsoft Employee

/api/data/v9.1/msdyn_richtextfiles(AF24DB3E-D115-485F-9E17-B5409F653041)/msdyn_imageblob/$value?size=full

Hi,

I want to send mail after the inventory of item reaches minimum level.

I don't have any issue with that except for the two above CreateMessage Methods  highlighted above.

How should I use Recipient of Datatype "List of [Text]" in the second version of CreateMessage Method? I need to use Recipient of "List of [Text]" since the first CreateMessage Overload gives me the following error message:

"Method 'CreateMessage' is marked for removal. The method is obsolete. Call the other CreateMessage instead".

I want to use the second CreateMessage Method using Recipient of Datatype "List of [Text]".

Any help please?

Thanks in advance.

Categories:
  • Suggested answer
    Chameera Kavinda Profile Picture
    Chameera Kavinda 510 on at
    RE: HOW TO USE LIST OF [TEXT] AS A PARAMETER IN CreateMessage METHOD IN BC 150

    Hi,

    You can define the variable as the below image

    3051.PNG

    Then you can fill the list like this.

    5327.PNG

    then you can call the method

    2313.PNG

    Thank you.

  • Suggested answer
    THE Italian Profile Picture
    THE Italian on at
    RE: HOW TO USE LIST OF [TEXT] AS A PARAMETER IN CreateMessage METHOD IN BC 150

    Duplicate of community.dynamics.com/.../1046075

    Please, mark this as answered.

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 288,459 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,783 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans