Skip to content

Commit

Permalink
Error for wrong message argument
Browse files Browse the repository at this point in the history
  • Loading branch information
rappen committed Sep 10, 2021
1 parent 51acce4 commit 878514e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions XRMTokensRun/XRMTR.cs
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,11 @@ public void OnIncomingMessage(MessageBusEventArgs message)
cmbTable.SetSelected(entity);
LoadRecord(entity, id);
}
else
{
MessageBox.Show("Call this tool with any of these argument:\n\n Entity\n EntityReference\n LogicalName:Guid (string)\n\nTry again! :)",
"Message Argument incorrect", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}

private void btnBackTool_Click(object sender, EventArgs e)
Expand Down

0 comments on commit 878514e

Please sign in to comment.