Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested answer

Replacing CosmosDB id with newly generated CRM id - Errors

(0) ShareShare
ReportReport
Posted on by 75

Below shows how I have constructed my Logic App.

I wish to:  Extract data from CosmosDB -> Upload to CRM -> replace the cosmosID with the newly generated CRMid

This what I have done:

pastedimage1596477953217v1.png

pastedimage1596478007572v2.png

pastedimage1596478088948v3.png

pastedimage1596478174664v5.png

pastedimage1596478200245v6.png

pastedimage1596478252916v8.png

1.Am I going about this the right way? I seem to get a partition error when trying to actually upload to cosmosdb. It could be that my partition is set on id and I essentially want to REPLACE the cosmosid with the CRMid.

2.Also I seem to get an error when I create a new record in CRM:

{
"status": 400,
"message": "Syntax error: character '\"' is not valid at position 1 in '(\"John Doe\")'.",
"error": {

However, all I am doing is this:

All the other parameters are sent to CRM except the 'LeadPM'. What am I doing wrong here?

pastedimage1596478459939v9.png

Any feedback or suggestion is greatly appreciated.

  • Suggested answer
    Bipin D365 Profile Picture
    Bipin D365 28,961 Moderator on at
    RE: Replacing CosmosDB id with newly generated CRM id - Errors

    Hi,

    I have already replied to this query in your previous forum post.

    Please see my response in your previous forum post.

    If found helpful, Please mark my answer verified.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,407 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans