Brug eksterne datakilder til forventet mængde i cyklusoptællinger
Forventede mængder i cyklusoptællinger beregnes automatisk fra produktelementregistreringer i Intelligent salg. Men hvis du har brug for at bruge eksterne datakilder til disse tal, skal du bruge vores IFetchInventoryCount Apex med dine egne tilpassede Apex og -metoder.
EditionsHeading
Tilgængelig i: Lightning Experience
Tilgængelig i: Enterprise og Unlimited Edition med Health Cloud eller Life Sciences Cloud
Brugertilladelser påkrævet
Hvis du vil definere en Apex:
Dokumentopretter Apex
I Developer Console skal du vælge Filer | Ny | Apex-klasse.
Implementer denne Apex i Apex:
public class UpdateInventory implements healthcloudext.IFetchInventoryCount{
//Sample Apex Class to fetch Inventory count from external Inventory Location (Input parameter : visitId)
public Map<Id,Integer> getInventoryCount(String visitId){
Map<Id,Integer> sample = new Map<Id,Integer>();
//Logic to fetch numbers from external data source
//Use Apex code to connect to external API and fetch result
//Return Type: Map of Product Item Id against its Count(Integer Value)
return sample;
}
}
Hvis en registrering mod ProductItemId mangler en værdi, og dette produktelement allerede har en værdi for den forventede mængde i systemet Intelligent salg, bruges værdien i systemet Intelligent salg i stedet for.
Løste denne artikel dit problem?
Giv os besked, så vi kan forbedre os!
Indlæser
Salesforce Help | Article
Cookie Consent Manager
General Information
Required Cookies
Functional Cookies
Advertising Cookies
General Information
We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required Cookies
Always Active
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional Cookies
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising Cookies
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.