web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Unanswered

Problem with Plugin On-Create (but not on Update) Known Reason, Still Can't Get Past

(0) ShareShare
ReportReport
Posted on by 5

Hello All. I am having a problem with a Plugin I wrote some time ago (month or two, Dynamics 365 Online) I had it working before, but needed to update some internal GUIDs the Plugin targets in logic. Prior to adding these new values I tested this Plugin in production with success (actually left it on by accident and worked for a prolonged period, and 5k+ modified records). The plugin was registered on Create for this.

However now when I reactivate the Create Step, I cannot get it to work as before. I have tracing activated and can see that the error is that a key is "not present in the dictionary" and I know this is because the ID for the record is not being populated and therefore empty/null when the Plugin runs. I have attempted different combinations of pre/post and sync/async, but none of the combinations allow the Plugin to function as intended. 

For context, the Plugin is fired and picks up the record's ID, using it to make an ODATA Dynamics API (GET) call with a dynamic value/var in the request for the ID, gather data into var, and then output those var/string via a PATCH request to the API. However, it only does this for specific automations using their GUIDs.

The end result is data from one entity into another (has to happen this way as one of the Entities is a ClickDimensions managed entity, with the other being our main entity to hold contacts). The entire thing has worked before, and works on update for each case. 

(The Plugin works on Update like magic every time)

How can I get this to work again? Also for a Plugin like this what is the ideal method to use Pre Validation/ Pre Operation / Post Operation and Sync / Async. I had assumed the most Ideal would be Post Op/Async as to allow the ID to manifest, but the logic does not seem to execute. 

Apologies for the long post, any/all help is greatly appreciated. Thanks Everyone. (I will update if I manage to get it working again) 

I have the same question (0)

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 108 Super User 2025 Season 2

#2
Jimmy Passeti Profile Picture

Jimmy Passeti 50 Most Valuable Professional

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 49 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans