You should specify a parent contact or account - FaultException
When trying to record an occurrence / incident, an exception with the message "You should specify a parent contact or account."
To solve simply assign the value of the atribute customerid example below:
To solve simply assign the value of the atribute customerid example below:
1: Entity ocorrencia = new Entity("incident");
2: ocorrencia["title"] = txtDescricao.Text.Split('\n')[0];
3:
4: if (cliente.LogicalName.Contains("account"))
5: ocorrencia["accountid"] = cliente;
6: else if (cliente.LogicalName.Contains("contact"))
7: ocorrencia["contactid"] = cliente;
8:
9: ocorrencia["customerid"] = cliente;
Seja o primeiro a comentar 0 comentários
Postar um comentário