Hi GUYS
Hope you can help I am a NOOB
I have made a Data sheet that sends data to sharepoint
2 of the data cards's is a Dropdown with (none,medium,low) etc...
I have managed to use an if statement to say that IF the selection is "none" it wil write to a field in sharepoint which will then make it a 0
My coding is working but for some reason it is not writing anything to my CompLevelScore? I am not sure if it is to many IF statements?
Here is the code:
Patch(MITAssessment, Defaults(MITAssessment), {Title:NewTitleText_1.Text, Question:DataCardValue7_1.Text, WhyAreWeAsking:DataCardValue8_1.Text, Importance:DataCardValue9_1.Selected.Value,Finding:DataCardValue10_1.Text, ComplianceLevel:DataCardValue11_1.Selected.Value},If(DataCardValue9_1.Selected.Value="Low",{ImpLevelScore:1},If(DataCardValue9_1.Selected.Value="Medium",{ImpLevelScore:2},If(DataCardValue9_1.Selected.Value="Critical",{ImpLevelScore:3};
If(DataCardValue11_1.Selected.Value="Low",{CompLevelScore:1}, If(DataCardValue11_1.Selected.Value="Medium",{CompLevelScore:2},If(DataCardValue11_1.Selected.Value="Compliant",{CompLevelScore:3},If(DataCardValue11_1.Selected.Value="None",{CompLevelScore:0}))))))))
THANK YOU