Introducing the all-new TIBCO Community site!

For current users, please click "Sign In" to reset your password and access the enhanced features. If you're a first-time visitor, we extend a warm welcome—click "Sign Up" to become a part of the TIBCO Community!

If you're seeking alternative community sites, explore ibi, Jaspersoft, and Spotfire.

Jump to content

Dynamics 365 CRM: while creating parent child records how to delete parent if any of the child creation fails. Any transaction rollback or try catch etc


Javed Iqbal 3

Recommended Posts

Hello,

For parent child records creation parent must be created before the child. After the creation of parent we create child records and if any og the child record creation fails we want to delete all created child records and parent. How it can be achieved using Tibco cloud integration for Dynamics 365 CRM connector etc. Is there a transaction processiong mechanism with rollback feature or try catch to manually implement transaction rollback Any advice/suggestion would be appriciated :)

Link to comment
Share on other sites

  • 2 weeks later...

If this is with BusinessWorks (Integrate) capability of TIBCO Cloud Integration:

After the creation of the parent and/or the child records, one of the Output fields will be the entity ID. You can use the Delete Entity activity (either through Rest or regular palette) and map the records created in the previous activity to it. This will help you delete and roll back any records you created.

You can even define an error handling block as part of your process and add the Delete activity there. It can be defined to run when creation fails (after Create Entity)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...