Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
In diesem Artikel wird erläutert, wie Sie eine Empfehlung erstellen.
Voraussetzungen
- Anmeldedaten, wie in Referrals API authentication beschrieben. In diesem Szenario wird die Authentifizierung mit App- und Benutzeranmeldeinformationen unterstützt.
REST-Anforderung
Anforderungssyntax
| Methode | Anfrage-URI |
|---|---|
| POST | https://api.partner.microsoft.com/v1.0/engagements/referrals |
Anfrage-Header
- Weitere Informationen finden Sie unter REST-Header der Partner-API.
Anforderungstext
Diese Tabelle beschreibt die Eigenschaften von Referral im Anforderungstext für einen neuen Referral.
| Eigenschaft | Typ | BESCHREIBUNG |
|---|---|---|
| Name | Zeichenfolge | Der Name der Weiterempfehlung. |
| ExternalReferenceID | Zeichenfolge | Eine externe Kennung für die Weiterleitung. Zum Beispiel Ihre eigene Lead- oder Verkaufschancen-ID in Dynamics 365. |
| Der Status | Empfehlungsstatus | Ein Enum mit Werten, die den Verweisstatus angeben. |
| Unterstatus | ReferralSubstatus | Eine Enumeration mit Werten, die den Unterstatus der Weiterleitung angeben. |
| Statusgrund | Zeichenfolge | Eine beschreibende Statusmeldung. Erläutere beispielsweise, warum die Weiterempfehlung verloren ging. |
| Überweisungstyp | ReferralType | Gibt die Art des Verweises an. Erforderlich. |
| Qualifikation | Empfehlungsqualifizierung | Stellt die Qualität der Empfehlung dar. |
| Kundenprofil | CustomerProfile | Die Kontaktinformationen des Kunden. Erforderlich. |
| Einwilligung | Einwilligung | Zustimmungsflags hinsichtlich der Weitergabe von Informationen an andere Organisationen und der Erlaubnis, Kontakt mit Benutzern aufzunehmen. Erforderlich. |
| Einzelheiten | Empfehlungsdetails | Kundendetails, Notizen, Deal-Wert, Währung, Abschlussdatum. Erforderlich. |
| Mannschaft | Mitglied | Stellt Benutzer in den Organisationen dar, die an dem Partner-Engagement beteiligt sind. |
| EinladungsKontext | InviteContext | Stellt weitere Informationen dar, die ein Benutzer bereitstellen kann, wenn er eine andere Organisation in das Partner-Engagement einlädt. |
| Ziel | ReferralTarget | Stellt weitere Informationen dar, die ein Benutzer bereitstellen kann, wenn er eine andere Organisation in das Partner-Engagement einlädt. |
| Partnerrolle | PartnerRole | Nur erforderlich für Co-Sell-Empfehlungen für Serviceleistungen |
| Lösungsbereich | SolutionArea | Der Lösungsbereich des Kundenbedarfs in der Verkaufschance. Erforderlich. |
| Gespräch | Gespräch | Das Gespräch über den Kundenbedarf in der Verkaufschance. Erforderlich. |
Beispielanfrage
Wichtig
In dieser Beispielanforderung wird beschrieben, wie Sie eine private Empfehlung mit minimal erforderlichen Informationen erstellen. Beachten Sie, dass der Schlüsselparameter, damit diese Empfehlung zu einem privaten Geschäft wird, consentToShareReferralWithMicrosoftSellers ist.
POST https://api.partner.microsoft.com/v1.0/engagements/referrals HTTP/1.1
Authorization: Bearer <token>
Host: api.partner.microsoft.com
Content-Type: application/json
{
"name": "Contoso Test Deal - [Private]",
"qualification": "SalesQualified",
"type": "Independent",
"customerProfile": {
"name": "Contoso Customer Inc",
"address": {
"addressLine1": "One Microsoft Way",
"addressLine2": "34",
"city": "Redmond",
"state": "WA",
"postalCode": "98052",
"country": "US"
},
"size": "10to50employees",
"team": [
{
"firstName": "Sue",
"lastName": "Smith",
"phoneNumber": "1234567890",
"email": "sue.smith@contosocustomer.com"
}
],
"ids":[
{
"profileType":"moodys",
"id":"IN0011234567"
}
]
},
"consent": {
"ConsentToToShareInfoWithOthers": true,
"ConsentToContact": true,
"ConsentToMicrosoftToContactSpecificPartners": true,
"consentToShareReferralWithMicrosoftSellers": false,
"ConsentToShareCustomerContactLater": true
},
"details": {
"notes": "Customer is looking to leverage Dynamics 365 to manage their supply chain. There's also a need to leverage a set of custom apps to enable their business processes.",
"dealValue": 50000,
"currency": "USD",
"closingDateTime": "2024-11-14T00:00:00Z",
"requirements": {
"solutions": [
{
"type": "Name",
"id": "SOL-15974-MQF",
"name": "Contoso-Ale_Test",
"publisherName": "Contoso_Test",
"solutionType": "3P"
}
],
"additionalRequirements": {
"iot": {},
"attributes": [
{
"id": "HaveNotDecided",
"type": "CustomerMarketplaceIntent"
},
{
"id": "AI Business Solutions",
"type": "SolutionArea"
},
{
"id": "Agentify your business processes",
"type": "Conversation"
}
]
}
}
},
"team": [
{
"firstName": "John",
"lastName": "Doe",
"phoneNumber": "1231231234",
"email": "john.doe@contoso.com"
}
],
"target": [],
"mpnId": "<ENTER PARTNER_ID>"
}
REST-Antwort
Bei Erfolg gibt diese Methode die ausgefüllte Referral-Ressource im Antworttextkörper zurück.
Erfolgs- und Fehlercodes der Antwort
Jede Antwort enthält einen HTTP-Statuscode, der Erfolg oder Fehler und weitere Debuginformationen angibt. Verwenden Sie ein Netzwerkablaufverfolgungstool, um diesen Code, fehlertyp und andere Parameter zu lesen. Die vollständige Liste findest du unter Fehlercodes.
Beispielantwort
{
"id": "4eb82669-ccf8-4856-86fc-b9ffe116376b",
"engagementId": "6d72b13d-8584-4bba-a642-6800b8e32330",
"name": "Contoso Test Deal - [Private]",
"organizationId": "00aa00aa-bb11-cc22-dd33-44ee44ee44ee",
"organizationName": "Contoso Pvt Ltd",
"lastModifiedVia": "4990cffe-04e8-4e8b-808a-1175604b879f",
"target": [],
"createdDateTime": "2024-07-27T14:57:00.0952954Z",
"updatedDateTime": "2024-07-27T14:57:00.0952954Z",
"status": "Active",
"substatus": "Accepted",
"qualification": "SalesQualified",
"type": "Independent",
"customerProfile": {
"name": "Contoso Customer Inc",
"address": {
"addressLine1": "One Microsoft Way",
"addressLine2": "34",
"city": "Redmond",
"state": "WA",
"postalCode": "98052",
"country": "US"
},
"size": "10to50employees",
"team": [
{
"contactPreference": {
"locale": "en-us",
"disableNotifications": false
},
"firstName": "Sue",
"lastName": "Smith",
"phoneNumber": "1234567890",
"email": "sue.smith@contosocustomer.com",
"emailValidationStatus": "None",
"phoneValidationStatus": "None"
}
],
"ids": [
{
"profileType":"moodys",
"id":"IN0011234567"
}
],
"isMatchingComplete": false
},
"consent": {
"consentToToShareInfoWithOthers": true,
"consentToContact": true,
"ConsentToMicrosoftToContactSpecificPartners": true,
"consentToShareReferralWithMicrosoftSellers": false,
"ConsentToShareCustomerContactLater": true
},
"details": {
"notes": "Customer is looking to leverage Dynamics 365 to manage their supply chain. There's also a need to leverage a set of custom apps to enable their business processes.",
"dealValue": 50000.0,
"currency": "USD",
"closingDateTime": "2024-11-14T00:00:00Z",
"requirements": {
"industries": [],
"products": [],
"services": [],
"solutions": [
{
"name": "Contoso-Ale_Test",
"type": "Name",
"publisherName": "Contoso_Test",
"solutionType": "3P",
"id": "SOL-15974-MQF"
}
],
"additionalRequirements": {
"iot": {
"azureCertifiedDevice": false,
"attachServices": false
},
"attributes": [
{
"type": "CustomerMarketplaceIntent",
"id": "HaveNotDecided"
},
{
"type": "SolutionArea",
"id": "AI Business Solutions"
},
{
"type": "Conversation",
"id": "Agentify your business processes"
}
]
}
}
},
"team": [
{
"contactPreference": {
"locale": "en-us",
"disableNotifications": false
},
"firstName": "John",
"lastName": "Doe",
"phoneNumber": "1231231234",
"email": "john.doe@contoso.com",
"emailValidationStatus": "None",
"phoneValidationStatus": "None"
}
],
"inviteContext": {
"invitedBy": {
"organizationId": "00aa00aa-bb11-cc22-dd33-44ee44ee44ee",
"organizationName": "Contoso Pvt Ltd"
},
"assistanceRequestCode": "Unknown",
"invitedMpnId": "<PARTNER_ID>"
},
"favorite": false,
"trackingInfo": {},
"direction": "Outgoing",
"mpnId": "<PARTNER_ID>",
"dealSensitivity": "None",
"createdVia": "4990cffe-04e8-4e8b-808a-1175604b879f",
"acceptedDateTime": "2024-07-27T14:56:59.2938209Z",
"registrationStatus": "None",
"links": {
"relatedReferrals": {
"uri": "https://api.partner.microsoft.com/v1.0/engagments/referrals?$filter=engagementId eq '6d72b13d-8584-4bba-a642-6800b8e32330'",
"method": "GET"
},
"self": {
"uri": "https://api.partner.microsoft.com/v1.0/engagments/referrals/4eb82669-ccf8-4856-86fc-b9ffe116376b",
"method": "GET"
}
}
}
Erstellen eines Co-Sell-Deals oder einer geteilten Empfehlung
Es sind zwei Schritte erforderlich, um einen Co-Sell-Deal oder eine Empfehlung vom Typ Shared zu erstellen:
- Ein partnergeführtes Geschäft erstellen, das für den Microsoft-Vertrieb sichtbar ist
- Erstellen Sie mithilfe von Details zur Partnerempfehlung eine Microsoft-Empfehlung
Das folgende Flussdiagramm veranschaulicht diese beiden Schritte zur Erstellung einer gemeinsamen Empfehlung.
Schritt 1: Erstellen eines partnergeführten Deals, der für Microsoft-Verkäufer sichtbar ist
Erstellen Sie zunächst einen partnergeführten Deal, der für Microsoft-Verkäufer sichtbar ist, indem Sie die folgende Anforderungsnutzlast verwenden.
Wichtig
Beachten Sie, dass zum Kennzeichnen einer Empfehlung als partnergeführt consentToShareReferralWithMicrosoftSellers auf true festgelegt wird. Eine aktive Private-Empfehlung kann in Partner-led umgewandelt werden, indem die Empfehlung für dieses Feld aktualisiert wird.
POST https://api.partner.microsoft.com/v1.0/engagements/referrals HTTP/1.1
Authorization: Bearer <token>
Host: api.partner.microsoft.com
Content-Type: application/json
{
"name": "Contoso Test Deal - [PartnerLed]",
"qualification": "SalesQualified",
"type": "Shared",
"customerProfile": {
"name": "Contoso Customer Inc",
"address": {
"addressLine1": "One Microsoft Way",
"addressLine2": "34",
"city": "Redmond",
"state": "WA",
"postalCode": "98052",
"country": "US"
},
"size": "10to50employees",
"team": [
{
"firstName": "Sue",
"lastName": "Smith",
"phoneNumber": "1234567890",
"email": "sue.smith@contosocustomer.com"
}
]
},
"consent": {
"ConsentToToShareInfoWithOthers": true,
"ConsentToContact": true,
"ConsentToMicrosoftToContactSpecificPartners": true,
"consentToShareReferralWithMicrosoftSellers": true,
"ConsentToShareCustomerContactLater": true
},
"details": {
"notes": "Customer is looking to leverage Dynamics 365 to manage their supply chain. There's also a need to leverage a set of custom apps to enable their business processes.",
"dealValue": 50000,
"currency": "USD",
"closingDateTime": "2024-11-14T00:00:00Z",
"requirements": {
"solutions": [
{
"type": "Name",
"id": "SOL-15974-MQF",
"name": "Contoso-Ale_Test",
"publisherName": "Contoso_Test",
"solutionType": "3P"
}
],
"additionalRequirements": {
"iot": {},
"attributes": [
{
"id": "HaveNotDecided",
"type": "CustomerMarketplaceIntent"
},
{
"id": "AI Business Solutions",
"type": "SolutionArea"
},
{
"id": "Agentify your business processes",
"type": "Conversation"
}
]
}
}
},
"team": [
{
"firstName": "John",
"lastName": "Doe",
"phoneNumber": "1231231234",
"email": "john.doe@contoso.com"
}
],
"target": [],
"mpnId": "<ENTER PARTNER_ID>"
}
ReferralTarget stellt zusätzliche Informationen dar, die ein Partner bereitstellen kann, wenn er andere Organisationen in das Engagement einlädt. Wenn Sie "target" in einer Empfehlung für den Typ SolutionProfile angeben möchten, finden Sie hier einen Beispielwert für die Referenz:
"target": [
{
"type": "SolutionProfile",
"id": "SOL-ABC-DEF"
}
]
Hinweis
Der Feldtyp , der in der Anforderungseingabe als unabhängig oder freigegeben bereitgestellt wird, ist nur ein Richtwert und wirkt sich nicht auf den Dealtyp aus. Der tatsächliche Wert wird in der API auf der Grundlage anderer Parameter wie consent und inviteContext zugewiesen.
Schritt 2: Erstellen Sie eine Microsoft-Weiterempfehlung mithilfe der Details der Partnerweiterempfehlung
Erstellen Sie dann die Microsoft-Empfehlung über einen anderen API-Aufruf, und verknüpfen Sie sie mit der Partnerempfehlung mithilfe des Felds "Engagement-ID", das aus Schritt 1 zurückgegeben wird.
POST https://api.partner.microsoft.com/v1.0/engagements/referrals HTTP/1.1
Authorization: Bearer <token>
Host: api.partner.microsoft.com
Content-Type: application/json
{
"engagementId": "<ENGAGEMENT_ID (FROM PARTNER REFERRAL)>",
"organizationId": "msft",
"organizationName": "Microsoft",
"name": "Contoso Test Deal",
"type": "Shared",
"qualification": "SalesQualified",
"customerProfile": {
"name": "Contoso Customer Inc",
"address": {
"addressLine1": "One Microsoft Way",
"addressLine2": "34",
"city": "Redmond",
"state": "WA",
"postalCode": "98052",
"country": "US"
},
"size": "10to50employees",
"team": [
{
"firstName": "Sue",
"lastName": "Smith",
"phoneNumber": "1234567890",
"email": "sue.smith@contosocustomer.com",
"emailValidationStatus": "None",
"phoneValidationStatus": "None"
}
],
"isMatchingComplete": false
},
"consent": {
"consentToToShareInfoWithOthers": true,
"consentToContact": true,
"ConsentToMicrosoftToContactSpecificPartners": true,
"consentToShareReferralWithMicrosoftSellers": true,
"ConsentToShareCustomerContactLater": true
},
"details": {
"notes": "Test notes to Microsoft.",
"dealValue": 50000.0,
"currency": "USD",
"closingDateTime": "2024-11-14T00:00:00Z"
},
"team": [],
"inviteContext": {
"notes": "Proof of concept / Demo , Test notes to Microsoft.",
"invitedBy": {
"organizationId": "<ORGANIZATION_ID (FROM PARTNER REFERRAL)>",
"organizationName": "<ORGANIZATION_NAME (FROM PARTNER REFERRAL)>"
},
"assistanceRequestCode": "ProofOfConceptOrDemo"
},
"target": []
}
Wenn Sie "ReferralTarget" für eine Microsoft-Empfehlung angeben möchten, finden Sie hier einen Beispielwert für die Referenz:
"target": [
{
"type": "BusinessProfileLocation",
"id": "msft"
}
]
Services-Co-Selling-Verkaufsgelegenheit erstellen
- Um eine Services Co-Sell-Verkaufschance zu erstellen, müssen PartnerRole, SolutionArea und Conversation in details > anforderungen > zusätzlicheRequirements bereitgestellt werden.
- Lösungsdetails sind bei Services Co-sell-Chancen optional.
"details": {
"dealValue": 123456,
"currency": "USD",
"closingDateTime": "2025-01-21T18:30:00.000Z",
"notes": "Test Notes",
"requirements": {
"solutions": [],
"additionalRequirements": {
"attributes": [
{
"id": "Adoption and change management",
"type": "PartnerRole"
},
{
"id": "AI Business Solutions",
"type": "SolutionArea"
},
{
"id": "Agentify your business processes",
"type": "Conversation"
}
]
}
}
}