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

plugin pre create operation in the account entity i am trying to associate the contacts but getting error, can we use associate method in precreate?

(0) ShareShare
ReportReport
Posted on by 15

plugin pre create operation in the account entity i am trying to associate the contacts but getting  Sql error: Generic SQL error. CRM ErrorCode: -2147204784 Sql ErrorCode: -2146232060 

  • Suggested answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at
    RE: plugin pre create operation in the account entity i am trying to associate the contacts but getting error, can we use associate method in precreate?

    Hello,

    I believe you are trying to associate account from context with some contacts and it can't be done because account is not in the DB yet. I would recommend to move your plugin to Post Operation plugin when account is in the DB already.

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