Skip to main content
Lionel Kamdem (*****) ha fatto una domanda in #Trailhead
Working on Superbadge challenge, and I'm on part 6. 

Automate Fulfillment Cancellation Actions

Trailhead Superbadge: Lightning Experience Specialist (Challenge 6)

*Fulfillment is a custom object

*Adventure is the product object renamed 

This is the error I'm getting: 

User-added image

I believe I did everything correctly, but the error seems to be the cancelled fulfillment not updating the adventure package correctly. I believe I may not be referencing the original adventure package correctly. 

*adventure package is opportunity product renamed. 

Here is what I did:

User-added image

Please can anyone give me any insight into this. Thank you. 
10 risposte
  1. 16 ago 2018, 02:12
    Hi Lionel,

    Sorry for this issue you are encountering.

    This one took me a while, and I had to piece together several different responses to make it work, so I'll recap it all here.

    Process on the Fulfillment Object.

    Hi Lionel,Sorry for this issue you are encountering.This one took me a while, and I had to piece together several different responses to make it work, so I'll recap it all here.Criteria:

    1. [Fulfillment__c].Status__c  Equals  Picklist  Cancelled

    2. [Fulfillment__c].Schedule_Date__c  Greater than  Formula  TODAY()

    User-added image

    IMMEDIATE ACTIONS

    Record: [Fulfillment__c].Opportunity.OpportunityLineItems

    Criteria for Updating Records: Updated records meet all conditions

    Filter:

    1. Line Item ID  Equals  Formula  [Fulfillment__c].AdventurePackageId__c

    [note, I wanted to use Reference, but the AdventurePackageId field wasn't available to reference, so I used Formula]

    Set new field values for the records you update:

    Sales Price   Reference  [Fulfillment__c].Deposit__c

    User-added image

    As recommended, go to Setup > Object Manager > Adventure Package > Fields & Relationships, and edit the settings for the Explorer__c field. 

    • Uncheck the Required checkbox
    • Change "What to do if the lookup record is deleted?" to "Clear the value of this field"
    User-added image

    Hope this helps.

    Kindly mark this as solved if the reply was helpful so that it gets removed from the unanswered queue which results in helping others who are encountering the similar issue.

    Thanks,

    Nagendra