RE: Creating case or Lead from Microsoft Social Engagement
Hi Muhammad,
How are the automatic creation rules configured on Dynamics 365?
To achieve what you are trying to do you have to create one rule and two different elements, one for the case and one for the lead.
To diffirentiate both, you have to add as a conditions that the field "activityadditionalparams" contains "userPreferredTargetEntity":"incident" for cases and "userPreferredTargetEntity":"lead" for leads.
I hope this resolves your problem. If it does, please mark the suggested answer as verified so any other D365 community member could know that. :)