Hi
Hi
now I'm getting different type of error saying invalid number of arguments received 3 ,expected 2
hey @Nayana_MS
another shot:
If(
Dropdown1.Selected.Value = "--Select--" || Dropdown2.Selected.Value = "--Select--" || Dropdown5.Selected.Value = "--Select--" || IsBlank(DataCardValue2.Text) || IsBlank(DataCardValue4.Text) || IsBlank(ComboBox1.Selected) || IsBlank(ComboBox1_1.Selected) || IsBlank(ComboBox2_5.Selected) || IsBlank(ComboBox1.Selected.DisplayName) || DatePicker2.SelectedDate < Today() || DatePicker1.SelectedDate < Today(),
Notify(
"Please fill the form and ensure the selected date is not in the past",
NotificationType.Warning
),
If(
!IsBlank(
LookUp(
ResourceAllocation_AvailableResources,
Resources = ComboBox1.Selected.DisplayName
).'Project1 Name'
) && !IsBlank(
LookUp(
ResourceAllocation_AvailableResources,
Resources = ComboBox1.Selected.DisplayName
).'Project2 Name'
),
Notify(
"Resource " & ComboBox1.Selected.DisplayName & " is allocated to both projects.",
NotificationType.Warning
),
With(
{
resource1Project1: LookUp(
ResourceAllocation_AvailableResources,
Resources = ComboBox1.Selected.DisplayName
).'Project1 Name',
resource1Project2: LookUp(
ResourceAllocation_AvailableResources,
Resources = ComboBox1.Selected.DisplayName
).'Project2 Name'
},
If(
IsBlank(resource1Project1),
UpdateIf(
ResourceAllocation_AvailableResources,
Resources = ComboBox1.Selected.DisplayName,
{
Allocation1: PowerPlatformLabel.Text,
'Total Engagements this month': If(
'Total Engagements this month' = "2",
"2",
"1"
),
'Project1 Name': ProjectNameLabel.Text,
'P1 Start Date': StartDateLabel.Text,
'P1 End Date': EndDateLabel.Text,
Project1UniqueId: DataCardValue12.Text,
'Project1 Category': Dropdown1.SelectedText.Value,
'TL1 MailId': DataCardValue26.Text,
'P1 Reporting Manager': ComboBox2_5.Selected.DisplayName
}
)
),
If(
IsBlank(resource1Project2),
UpdateIf(
ResourceAllocation_AvailableResources,
Resources = ComboBox1.Selected.DisplayName,
{
Allocation2: PowerPlatformLabel.Text,
'Total Engagements this month': If(
'Total Engagements this month' = "2",
"2",
"1"
),
'Project2 Name': ProjectNameLabel.Text,
'P2 Start Date': StartDateLabel.Text,
'P2 End Date': EndDateLabel.Text,
Project2UniqueId: DataCardValue12.Text,
'Project2 Category': Dropdown1.SelectedText.Value,
'TL2 MailId': DataCardValue26.Text,
'P2Reporting Manager': ComboBox2_5.Selected.DisplayName
}
)
)
),
With(
{
resource2Project1: LookUp(
ResourceAllocation_AvailableResources,
Resources = ComboBox2.Selected.DisplayName
).'Project1 Name',
resource2Project2: LookUp(
ResourceAllocation_AvailableResources,
Resources = ComboBox2.Selected.DisplayName
).'Project2 Name'
},
If(
IsBlank(resource2Project1),
UpdateIf(
ResourceAllocation_AvailableResources,
Resources = ComboBox2.Selected.DisplayName,
{
Allocation1: PowerPlatformLabel.Text,
'Total Engagements this month': If(
'Total Engagements this month' = "2",
"2",
"1"
),
'Project1 Name': ProjectNameLabel.Text,
'P1 Start Date': StartDateLabel.Text,
'P1 End Date': EndDateLabel.Text,
Project1UniqueId: DataCardValue12.Text,
'Project1 Category': Dropdown1.SelectedText.Value,
'TL1 MailId': DataCardValue26.Text,
'P1 Reporting Manager': ComboBox2_5.Selected.DisplayName
}
)
),
If(
IsBlank(resource2Project2),
UpdateIf(
ResourceAllocation_AvailableResources,
Resources = ComboBox2.Selected.DisplayName,
{
Allocation2: PowerPlatformLabel.Text,
'Total Engagements this month': If(
'Total Engagements this month' = "2",
"2",
"1"
),
'Project2 Name': ProjectNameLabel.Text,
'P2 Start Date': StartDateLabel.Text,
'P2 End Date': EndDateLabel.Text,
Project2UniqueId: DataCardValue12.Text,
'Project2 Category': Dropdown1.SelectedText.Value,
'TL2 MailId': DataCardValue26.Text,
'P2Reporting Manager': ComboBox2_5.Selected.DisplayName
}
)
)
),
ResourceAllocationMail.Run(
If(
!IsBlank(ComboBox1.Selected.Mail),
ComboBox1.Selected.Mail,
""
) & If(
!IsBlank(ComboBox2.Selected.Mail),
", " & ComboBox2.Selected.Mail,
""
) & If(
!IsBlank(ComboBox3.Selected.Mail),
", " & ComboBox3.Selected.Mail,
""
) & If(
!IsBlank(ComboBox4.Selected.Mail),
", " & ComboBox4.Selected.Mail,
""
) & If(
!IsBlank(ComboBox5.Selected.Mail),
", " & ComboBox5.Selected.Mail,
""
),
DataCardValue2.Text,
ComboBox2_5.Selected.DisplayName
);
SubmitForm(Form1)
)
)
Let me know if my answer helped solving your issue.
If it did please accept as solution and give it a thumbs up so we can help others in the community.
Greetings
can u try this modification:
If(
Dropdown1.Selected.Value = "--Select--" || Dropdown2.Selected.Value = "--Select--" || Dropdown5.Selected.Value = "--Select--" || IsBlank(DataCardValue2.Text) || IsBlank(DataCardValue4.Text) || IsBlank(ComboBox1.Selected) || IsBlank(ComboBox1_1.Selected) || IsBlank(ComboBox2_5.Selected) || IsBlank(ComboBox1.Selected.DisplayName) || DatePicker2.SelectedDate < Today() || DatePicker1.SelectedDate < Today(),
Notify(
"Please fill the form and ensure the selected date is not in the past",
NotificationType.Warning
),
If(
!IsBlank(
LookUp(
ResourceAllocation_AvailableResources,
Resources = ComboBox1.Selected.DisplayName
).'Project1 Name'
) && !IsBlank(
LookUp(
ResourceAllocation_AvailableResources,
Resources = ComboBox1.Selected.DisplayName
).'Project2 Name'
),
Notify(
"Resource " & ComboBox1.Selected.DisplayName & " is allocated to both projects.",
NotificationType.Warning
),
If(
IsBlank(
LookUp(
ResourceAllocation_AvailableResources,
Resources = ComboBox1.Selected.DisplayName
).'Project1 Name'
),
UpdateIf(
ResourceAllocation_AvailableResources,
Resources = ComboBox1.Selected.DisplayName,
{
Allocation1: PowerPlatformLabel.Text,
'Total Engagements this month': If(
'Total Engagements this month' = "2",
"2",
"1"
),
'Project1 Name': ProjectNameLabel.Text,
'P1 Start Date': StartDateLabel.Text,
'P1 End Date': EndDateLabel.Text,
Project1UniqueId: DataCardValue12.Text,
'Project1 Category': Dropdown1.SelectedText.Value,
'TL1 MailId': DataCardValue26.Text,
'P1 Reporting Manager': ComboBox2_5.Selected.DisplayName
}
)
),
If(
IsBlank(
LookUp(
ResourceAllocation_AvailableResources,
Resources = ComboBox1.Selected.DisplayName
).'Project2 Name'
),
UpdateIf(
ResourceAllocation_AvailableResources,
Resources = ComboBox1.Selected.DisplayName,
{
Allocation2: PowerPlatformLabel.Text,
'Total Engagements this month': If(
'Total Engagements this month' = "2",
"2",
"1"
),
'Project2 Name': ProjectNameLabel.Text,
'P2 Start Date': StartDateLabel.Text,
'P2 End Date': EndDateLabel.Text,
Project2UniqueId: DataCardValue12.Text,
'Project2 Category': Dropdown1.SelectedText.Value,
'TL2 MailId': DataCardValue26.Text,
'P2Reporting Manager': ComboBox2_5.Selected.DisplayName
}
)
),
If(
IsBlank(
LookUp(
ResourceAllocation_AvailableResources,
Resources = ComboBox2.Selected.DisplayName
).'Project1 Name'
),
UpdateIf(
ResourceAllocation_AvailableResources,
Resources = ComboBox2.Selected.DisplayName,
{
Allocation1: PowerPlatformLabel.Text,
'Total Engagements this month': If(
'Total Engagements this month' = "2",
"2",
"1"
),
'Project1 Name': ProjectNameLabel.Text,
'P1 Start Date': StartDateLabel.Text,
'P1 End Date': EndDateLabel.Text,
Project1UniqueId: DataCardValue12.Text,
'Project1 Category': Dropdown1.SelectedText.Value,
'TL1 MailId': DataCardValue26.Text,
'P1 Reporting Manager': ComboBox2_5.Selected.DisplayName
}
)
),
If(
IsBlank(
LookUp(
ResourceAllocation_AvailableResources,
Resources = ComboBox2.Selected.DisplayName
).'Project2 Name'
),
UpdateIf(
ResourceAllocation_AvailableResources,
Resources = ComboBox2.Selected.DisplayName,
{
Allocation2: PowerPlatformLabel.Text,
'Total Engagements this month': If(
'Total Engagements this month' = "2",
"2",
"1"
),
'Project2 Name': ProjectNameLabel.Text,
'P2 Start Date': StartDateLabel.Text,
'P2 End Date': EndDateLabel.Text,
Project2UniqueId: DataCardValue12.Text,
'Project2 Category': Dropdown1.SelectedText.Value,
'TL2 MailId': DataCardValue26.Text,
'P2Reporting Manager': ComboBox2_5.Selected.DisplayName
}
)
),
ResourceAllocationMail.Run(
If(
!IsBlank(ComboBox1.Selected.Mail),
ComboBox1.Selected.Mail,
""
) & If(
!IsBlank(ComboBox2.Selected.Mail),
", " & ComboBox2.Selected.Mail,
""
) & If(
!IsBlank(ComboBox3.Selected.Mail),
", " & ComboBox3.Selected.Mail,
""
) & If(
!IsBlank(ComboBox4.Selected.Mail),
", " & ComboBox4.Selected.Mail,
""
) & If(
!IsBlank(ComboBox5.Selected.Mail),
", " & ComboBox5.Selected.Mail,
""
),
DataCardValue2.Text,
ComboBox2_5.Selected.DisplayName
);
SubmitForm(Form1)
)
)
Let me know if my answer helped solving your issue.
If it did please accept as solution and give it a thumbs up so we can help others in the community.
Greetings
HI @mmbr1606 Thanks for replying
I'm getting error at these saying invalid argument type (table).expecting a Boolean value instead
hey @Nayana_MS
can you try this please:
If(
Dropdown1.Selected.Value = "--Select--" || Dropdown2.Selected.Value = "--Select--" || Dropdown5.Selected.Value = "--Select--" || IsBlank(DataCardValue2.Text) || IsBlank(DataCardValue4.Text) || IsBlank(ComboBox1.Selected) || IsBlank(ComboBox1_1.Selected) || IsBlank(ComboBox2_5.Selected) || IsBlank(ComboBox1.Selected.DisplayName) || DatePicker2.SelectedDate < Today() || DatePicker1.SelectedDate < Today(),
Notify(
"Please fill the form and ensure the selected date is not in the past",
NotificationType.Warning
),
If(
!IsBlank(
LookUp(
ResourceAllocation_AvailableResources,
Resources = ComboBox1.Selected.DisplayName
).'Project1 Name'
) && !IsBlank(
LookUp(
ResourceAllocation_AvailableResources,
Resources = ComboBox1.Selected.DisplayName
).'Project2 Name'
),
Notify(
"Resource " & ComboBox1.Selected.DisplayName & " is allocated to both projects.",
NotificationType.Warning
),
If(
IsBlank(
LookUp(
ResourceAllocation_AvailableResources,
Resources = ComboBox1.Selected.DisplayName
).'Project1 Name'
),
UpdateIf(
ResourceAllocation_AvailableResources,
Resources = ComboBox1.Selected.DisplayName,
{
Allocation1: PowerPlatformLabel.Text,
'Total Engagements this month': If(
'Total Engagements this month' = "2",
"2",
"1"
),
'Project1 Name': ProjectNameLabel.Text,
'P1 Start Date': StartDateLabel.Text,
'P1 End Date': EndDateLabel.Text,
Project1UniqueId: DataCardValue12.Text,
'Project1 Category': Dropdown1.SelectedText.Value,
'TL1 MailId': DataCardValue26.Text,
'P1 Reporting Manager': ComboBox2_5.Selected.DisplayName
}
)
),
If(
IsBlank(
LookUp(
ResourceAllocation_AvailableResources,
Resources = ComboBox1.Selected.DisplayName
).'Project2 Name'
),
UpdateIf(
ResourceAllocation_AvailableResources,
Resources = ComboBox1.Selected.DisplayName,
{
Allocation2: PowerPlatformLabel.Text,
'Total Engagements this month': If(
'Total Engagements this month' = "2",
"2",
"1"
),
'Project2 Name': ProjectNameLabel.Text,
'P2 Start Date': StartDateLabel.Text,
'P2 End Date': EndDateLabel.Text,
Project2UniqueId: DataCardValue12.Text,
'Project2 Category': Dropdown1.SelectedText.Value,
'TL2 MailId': DataCardValue26.Text,
'P2Reporting Manager': ComboBox2_5.Selected.DisplayName
}
)
),
If(
IsBlank(
LookUp(
ResourceAllocation_AvailableResources,
Resources = ComboBox2.Selected.DisplayName
).'Project1 Name'
),
UpdateIf(
ResourceAllocation_AvailableResources,
Resources = ComboBox2.Selected.DisplayName,
{
Allocation1: PowerPlatformLabel.Text,
'Total Engagements this month': If(
'Total Engagements this month' = "2",
"2",
"1"
),
'Project1 Name': ProjectNameLabel.Text,
'P1 Start Date': StartDateLabel.Text,
'P1 End Date': EndDateLabel.Text,
Project1UniqueId: DataCardValue12.Text,
'Project1 Category': Dropdown1.SelectedText.Value,
'TL1 MailId': DataCardValue26.Text,
'P1 Reporting Manager': ComboBox2_5.Selected.DisplayName
}
)
),
If(
IsBlank(
LookUp(
ResourceAllocation_AvailableResources,
Resources = ComboBox2.Selected.DisplayName
).'Project2 Name'
),
UpdateIf(
ResourceAllocation_AvailableResources,
Resources = ComboBox2.Selected.DisplayName,
{
Allocation2: PowerPlatformLabel.Text,
'Total Engagements this month': If(
'Total Engagements this month' = "2",
"2",
"1"
),
'Project2 Name': ProjectNameLabel.Text,
'P2 Start Date': StartDateLabel.Text,
'P2 End Date': EndDateLabel.Text,
Project2UniqueId: DataCardValue12.Text,
'Project2 Category': Dropdown1.SelectedText.Value,
'TL2 MailId': DataCardValue26.Text,
'P2Reporting Manager': ComboBox2_5.Selected.DisplayName
}
)
),
ResourceAllocationMail.Run(
If(
!IsBlank(ComboBox1.Selected.Mail),
ComboBox1.Selected.Mail,
""
) & If(
!IsBlank(ComboBox2.Selected.Mail),
", " & ComboBox2.Selected.Mail,
""
) & If(
!IsBlank(ComboBox3.Selected.Mail),
", " & ComboBox3.Selected.Mail,
""
) & If(
!IsBlank(ComboBox4.Selected.Mail),
", " & ComboBox4.Selected.Mail,
""
) & If(
!IsBlank(ComboBox5.Selected.Mail),
", " & ComboBox5.Selected.Mail,
""
),
DataCardValue2.Text,
ComboBox2_5.Selected.DisplayName
);
SubmitForm(Form1)
)
)
Let me know if my answer helped solving your issue.
If it did please accept as solution and give it a thumbs up so we can help others in the community.
Greetings
WarrenBelz
791
Most Valuable Professional
MS.Ragavendar
410
mmbr1606
275
Super User 2025 Season 1