microsoft / EasyRepro

Automated UI testing API for Dynamics 365
MIT License
523 stars 289 forks source link

[HOW-TO] Set Hidden/Locked fields in a BPF stage #827

Open JordanD96 opened 4 years ago

JordanD96 commented 4 years ago

Setting Hidden/Locked fields in a BPF stage

Hi guys,

I'm new to EasyRepro and was wondering if you could help me out.

I have a BPF stage called 'Review'. When I click this stage, I need to populate multiple fields before I can go on to the next stage, however some of the fields are either locked or hidden on the form. image

Code example: xrmApp.BusinessProcessFlow.SetValue(new OptionSet { Name = "id_approved", Value = "Yes" }); id_approved is hidden on the form but is part of the BPF stage

Everything I have tried for hidden/locked fields results in the following error: id_approved Does not exist

Is it possible to set values for hidden and locked fields when they are part of a BPF stage?

Thanks Jordan

badarmunirr commented 4 years ago

id_approve is not an optionset value its boolean item
new BooleanItem { Name = "donotemail", Value = false }); try this