Hi Team
I have the following properties i want to pass, but due to new version of power apps v2, it has its standard rule of using these. Below are my datacards names for my power app form;
Short Description text
Audit Date date
Audit types dropdown
Responsible Area dropdown
Facilities dropdown
Find description text
References dropdown
Severity dropdown
Due Date date
Audit person name via email
References person name AD account
1st Manager Approval person name on AD account
2nd Manager Approval person name on AD account
Status dropdown
Attachments file
// power app version 2 not allowing these as follows
SHEQConformanceFlow.Run(
DataField('Short Description').Value,
DataCardAuditDate_DataCardValue.SelectedDate,
DropdownAuditTypes_DataCardValue.Selected.Value,
DropdownResponsibleArea_DataCardValue.Selected.Value,
DropdownFacilities_DataCardValue.Selected.Value,
DataCardFindDescription_DataCardValue.Text,
DropdownReferences_DataCardValue.Selected.Value,
DropdownSeverity_DataCardValue.Selected.Value,
DataCardDueDate_DataCardValue.SelectedDate,
DataCardAuditPerson_DataCardValue.Selected.Email,
DataCardReferencesPerson_DataCardValue.Selected.Email,
DataCardFirstManagerApproval_DataCardValue.Selected.Email,
DataCardSecondManagerApproval_DataCardValue.Selected.Email,
DropdownStatus_DataCardValue.Selected.Value,
DataCardAttachments_DataCardValue.Attachments
);
Mithilesh TataPosted Mar 23, 2024, 6:38 AM
It seems like you're trying to pass data from Power Apps to a flow using the
SHEQConformanceFlow.Run()function. However, the parameters you're trying to pass don't match the expected format for Power Apps version 2.In Power Apps version 2, the data is passed using the
DataField()function, and the controls are referenced using their respective names. Here's how you can modify your code to match the expected format:Make sure to replace
DataCardAuditDate,DropdownAuditTypes,DropdownResponsibleArea, and so on with the actual names of your controls in your Power App form. This should align with the way data is accessed in Power Apps version 2.