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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested Answer

set business process flow using RestAPI

(0) ShareShare
ReportReport
Posted on by

Hi CRM Experts,

I have 2 business process flows attached to case table and I use web resource js to dynamically switch the process flow based on a case type.

This script is attached to the case form on load.

There is no issues if i manually create a case and the script works perfectly.

However, when I migrated data using restAPI to the case table, the BPF is invisible until i manual click the switch process button in certain records.

What i have done for migrated records is:
1. insert case record to case table

2. insert bpf record to the bpf entity for associated case record in step 1.

I know the js setVisiblity command is to control the bpf visislbity on a form, but is there a RESTAPI alternative to set the bpf visibility for all migrated data?

I need to migrated 1m~ case records to dynamics so it is not ideal to manually click switch process button to trigger the bpf.

if it is not possible, can someone suggest alternative that you use help to resolve this  dynamics migration issue?

many thanks

I have the same question (0)
  • Community Member Profile Picture
    on at
  • Suggested answer
    StefanS365 Profile Picture
    3,575 Most Valuable Professional on at

    Hi there,

    You can set the ProcessId attribute to a specific business process flow entity (as an entity reference), so the system will apply the specified business process flow instead of the default logic.

    See for more information:

    docs.microsoft.com/.../model-business-process-flows

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Pallavi Phade Profile Picture

Pallavi Phade 102 Super User 2026 Season 1

#2
Abhilash Warrier Profile Picture

Abhilash Warrier 55 Super User 2026 Season 1

#3
ManoVerse Profile Picture

ManoVerse 49 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans