2022

Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Issue: Insertion of invoice to opportunity is done based on QuickBooksID (AVSFQB__Quickbooks_Id__c).

...

Image Removed

Fig1: Mapping

Image Removed

Fig2: Logs

Solution:

...

Open Invoice to Opoortunity workflow

...

Open first rule and replace existing mapping for AccountId as shown below

Image Removed

Fig3: Updated mapping

Existing mapping:

            LINK("AccountId","select id,AVSFQB__Quickbooks_Id__c from Account","AVSFQB__Quickbooks_Id__c",VALUE("CustomerRef/FullName/CustomerRet/ListID"),"Opportunity")

Updated mapping:

            LINK("AccountId","select id,Name from Account","Name",VALUE("CustomerRef/FullName/CustomerRet/Name"),"Opportunity")

SYNCING INVOICES BASED ON CUSTOMER TYPE

For Invoices to sync based on particular customer type do the following changes:

Go to the workflow:” Invoices to Opportunity”

1st Rule: SF   UPSERT AVSFQB_INVOICE__C

Image Added

VALIDATE ROW : IF(ISEMPTY(VALUE("OpportunityId")),IF(VALUE("CustomerRef/FullName/CustomerRet/CustomerTypeRef/FullName").equals("Retail"),"true","false"),"false")

Here “Retail” is the customer type we can change according to our requirement.


2ND RULE: SF UPDATE OPPORTUNITY

Image Added

VALIDATE ROW: IF(VALUE("OpportunityId")!="",IF(VALUE("CustomerRef/FullName/CustomerRet/CustomerTypeRef/FullName").equals("Retail"),"true","false"),"false")

Here “Retail” is the customer type we can change according to our requirement.


3rd RULE:SF UPSERT OPPORTUNITYLINEITEM

Image Added

VALIDATE ROW:

IF(ISEMPTY(VALUE("OpportunityId")),IF(VALUE("CustomerRef/FullName/CustomerRet/CustomerTypeRef/FullName").equals("Retail"),"true","false"),"false")

Here “Retail” is the customer type we can change according to our requirement.


4th RULE: SF UPSERT OPPORTUNITYITEM
Image Added

VALIDATE ROW:

IF(ISEMPTY(VALUE("OpportunityId")),IF(VALUE("CustomerRef/FullName/CustomerRet/CustomerTypeRef/FullName").equals("Retail"),"true","false"),"false")

Here “Retail” is the customer type we can change according to our requirement.

Now invoices will sync of customer type “Retail”