cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
arjunmusuvathy
Helper III
Helper III

MS Flow to activate/deactivate a Dynamics 365 record

Hi

 

I have a requirement

- Reactivate a record which is in deactivated state

- Make some changes

- Deactivate it back

 

Can I know if this is achievable in MS Flow please?

 

Thanks

Vik

7 REPLIES 7
Pstork1
Dual Super User
Dual Super User

There is no flow action right now for declaring or undeclaring a record.  There is a request for such an action, that you can vote on here. 

https://powerusers.microsoft.com/t5/Power-Automate-Ideas/SharePoint-Action-to-Declare-as-Record/idi-...



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Join me at 365 and PWR EduCon in Chicago
EduCon Chicago 2022

ScottShearer
Super User
Super User

@arjunmusuvathy 

There is no "out of the box" action that allows you to declare/undeclare a record.  However, I believe that you can accomplish your gola by using the Send an HTTP request to SharePoint action.

 

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

@ScottShearer @Pstork1 

 

Thanks for the reply guys. I forgot to mention that I was referring to deactivating/reactivating Dynamics 365 CRM records. I have re-edited my post.

 

Thanks

Hi Vikram,

 

You can use Invoke an HTTP request using Azure AD in following way :

 

Capture.JPG

 

For Activating record body : {"statuscode":1,"statecode":0}

For Deactivating record body : {"statuscode":2,"statecode":1}

Url of Request : /api/data/v9.1/entitypluralname(guid)

 

Thanks

rohentz
Community Support
Community Support

Hi Vikram87, how are you?

 

You also can add an update action to do this changes, even change the status to active to update.

 

I did a test using this action, changing the account name.

 

01.jpg

 

 

 

 

 

Regards

 

Rodrigo Hentz

Microsoft Support Engineer

prashantik
New Member

Hi Arjun,

 

Did you figure out the action to deactivate a CRM record using flows?

Hi @prashantik ,

 

As @rohentz suggested to use Update a record you can with that or use what I have suggested via HTTP request using Azure AD connector.

 

Thanks

Helpful resources

Announcements
October Events

Mark Your Calendars

So many events happening this month - don't miss out!

 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Register for a Free Workshop.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Users online (2,535)