Forum Stats

  • 3,814,398 Users
  • 2,258,870 Discussions
  • 7,892,696 Comments

Discussions

Skip uncertain/unknown values

Is there a way to skip these uncertain values? Maybe an if condition on entity level, something like:

the thread text output = For(the thread address, if(the address street addr1 is uncertain then skip else submit))

Many Thanks

Vritika

Tagged:

Best Answer

  • Richard Napier
    Richard Napier Member Posts: 399 Bronze Trophy
    Answer ✓

    So you could continue in the same direction (here there are two attributes that are checked and the result is a concatenation of the address, line one and line two)

    Which would give something like this in the Debugger

    London is the only one that has all the elements:

    Hope that helps

Answers

  • Richard Napier
    Richard Napier Member Posts: 399 Bronze Trophy

    Hi

    Could you please give more information? Such as entity structure, existing rules, screenshots and some explanation of what you are trying to achieve?

  • Scenario : Generate a thread in service cloud for more than 1 addresses for a contact. Address entity has 10 attributes, if any of these attributes is "Uncertain/Unknown", we need to skip this attribute from adding to thread output.

    Please find screenshot for address-thread relationship and address entity here:


    Rules snippet:

    the thread exists for the thread address
    
    
    the thread text output = For(the thread address, 
    DefaultWithUnknown(the address street addr1, "NA"))+ 
    NewLine()+For(the thread address, DefaultWithUnknown(the address street addr2, "NA"))+ 
    NewLine()+For(the thread address, DefaultWithUnknown(the address street addr3, "NA"))+ 
    the incident reference number+ NewLine()+ NewLine()+ the notes
    
    

    Many thanks

    Vritika

  • Richard Napier
    Richard Napier Member Posts: 399 Bronze Trophy
    edited Nov 17, 2021 3:15PM

    Hi

    Assuming I have correctly read between the lines / guessed the context, you are looking to infer instances of the thread based on the thread address, and only want to infer instances of the thread where the thread address line one is known.

    You can achieve that with a Word inference table, something like this assuming you have a relationship between thread address and the thread called the thread for the thread address.

    Here is a brief video showing how it works.

    Without knowing exactly what you are looking to achieve it is hard to advise further. Of course you could add further conditions to the table.

    Regards

  • Richard Napier
    Richard Napier Member Posts: 399 Bronze Trophy
    Answer ✓

    So you could continue in the same direction (here there are two attributes that are checked and the result is a concatenation of the address, line one and line two)

    Which would give something like this in the Debugger

    London is the only one that has all the elements:

    Hope that helps