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) 

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... 93

#3
Vahid Ghafarpour Profile Picture

Vahid Ghafarpour 82 Super User 2025 Season 1

Overall leaderboard

Product updates

Dynamics 365 release plans