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
    28,981 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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Daivat Vartak (v-9davar) Profile Picture

Daivat Vartak (v-9d... 225 Super User 2025 Season 1

#2
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 106

#3
Vahid Ghafarpour Profile Picture

Vahid Ghafarpour 82 Super User 2025 Season 1

Overall leaderboard

Product updates

Dynamics 365 release plans