Announcements
No record found.
Hi,
There is a entity named connection, the look up of connection shows all entities. Is there a way that I can make it show only work order records.
I am going to use it for work orders, I want that it directly show work order records and my customer directly use that, is there a way for that.
Hi, Ravi
I’d like to know that are you referring to the look up of connection in the picture below.
function SetSelectedEntities(executionContext) { var formContext = executionContext.getFormContext(); var customControl = formContext.getControl("record2id"); if (customControl.getEntityTypes().length > 1) { customControl.setEntityTypes(['msdyn_workorder']); } }
If this helped you, I'd appreciate it if you'd mark this as a Verified Answer, which may in turn help others as well.
Best Regards,
Nya
Hi Ravi, have a look at docs.microsoft.com/.../configure-connection-roles
An example is the connection from customer asset to IoT device.
Hi, I did the following step. Created a connection role as Associated work order and then selected Work order. When I go back to form and select Associated Work order. Still I am able to see account and all.
Am I doing something wrong?
Is there something wrong with my understanding?
Otherwise I think it would be more straightforward to implement this requirement in JavaScript.
Thanks Nya that was correct. I just changed my functionality and created the work flow instead just to keep the Connection entity base of connecting with multiple entity. as it is. Thank you so much for the code. it helped.
hi Nya,
I follows the above but is getting script error, any idea? and btw how i find this entity (['msdyn_workorder'])? my requirement is to only show user, so i changed to (['msdyn_user']);
error log
Web resource method does not exist: SetSelectedEntities
Session Id: bdc46e3f-6f0c-48e8-84a9-f01fc091ca75
Correlation Id: 73b91fa8-bae6-44ad-9b7d-fb99dbcf3d85
Event Name: onload
Function Name: SetSelectedEntities
Web Resource Name: dev_connection
Solution Name: Active
Publisher Name: DefaultPublishercredablsandbox
Time: Fri Jul 02 2021 18:37:19 GMT+1000 (Australian Eastern Standard Time)
Hi COOL,
It is recommended to post your issue separately.
Hi Ravi, can you show how you achieve this?
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.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
11manish 48 Super User 2026 Season 2
Travis South 45
Ayesha Wajahat 18