Genesys Cloud - Main

 View Only

Sign Up

  Thread closed by the administrator, not accepting new replies.
  • 1.  Regular expression to match with SAP Hybris

    Posted 01-02-2020 10:22
    No replies, thread closed.
    Hello Team,

    I'm working into an integration between PureCloud and SAP Hybris. 

    The thing is that when I receive the number from the PBX, I receive the following: 

    But when I answer the call in SAP, any register is showed, because this number does not match with any record. 

    I need to change the incoming number from 9229792000 to +56229792000.

    I tried several attempts with regular expression in admin/external trunks/customer trunk/Identity, but I'm not doing this properly. 
    Does anyone knows how to make the regular expression to match with 9229792000 and change it to: +56229792000?

    Thank you. 



    #ArchitectureandDesign
    #PlatformAdministration
    #SIP/VolP
    #SystemAdministration
    #Telephony

    ------------------------------
    Sebastian Valenzuela

    ------------------------------


  • 2.  RE: Regular expression to match with SAP Hybris

    Posted 01-02-2020 11:53
    Edited by Dan Fontaine 01-02-2020 11:56
    No replies, thread closed.
    The Identity Trunk settings are for Outbound calls only.

    You can change the inbound ANI in PureCloud Architect using the Update Data tool-step. ANI (Call.Ani) is a string value.

    Using Update Data you can set a string variable (e.g., Task.strPhoneLookupValue) to something like this expression:

    FindString(Call.Ani,"tel:+9")==0?Append("+56",Right(Call.Ani,Length(Call.ANI)-6)):Call.Ani

    Where, if the first characters in Call.Ani are "tel:+9", then set the varialbe to "+56" plus everything but "tel:+9" of Call.Ani.
    If Call.Ani does not start with "tel:+9", then set the variable to Call.Ani (which is probably not useful, but just to give you an idea...).

    So, for example, if Call.Ani is "tel:+92297920000" the lookup variable will be set to "+562297920000".

    You will want to verify what the inbound Call.Ani starts with. I am guessing that it may start with "tel:+9".
    In my PureCloud instance, the Call.Ani usually starts with "tel:+1".

    A quick way to check the value of Call.Ani and if the Expression above is working is to use a Play Audio tool in your flow to spell out Call.Ani or the set variable by selecting "say each character".

    ------------------------------
    Dan Fontaine
    Altivon
    ------------------------------



  • 3.  RE: Regular expression to match with SAP Hybris

    Posted 01-02-2020 13:03
    No replies, thread closed.

    Hello Dan,

    Thank you very much for your feedback. I was able to set the new number into the Task.strPhoneLookupValue variable, but I was not able to set this value into the Call.Ani variable... I tried using another update data box, but I wasn't able to set or select Call.Ani.

    Since the number that I receive is: 9229792000, I've used the following:

    FindString(Call.Ani,"tel:9")==0?Append("+56",Right(Call.Ani,Length(Call.ANI)-5)):Call.Ani

    So, now I just need to assign the value of the variable to Call.Ani.

    Have you changed this before?


    Best,
    SV.



    ------------------------------
    Sebastian Valenzuela
    CrossNet S.A.
    ------------------------------



  • 4.  RE: Regular expression to match with SAP Hybris

    Posted 01-02-2020 13:10
    No replies, thread closed.
    Call.ANI is read-only. You cannot change it. Your integration needs to send the value of the secondary variable you create.

    https://help.mypurecloud.com/articles/architect-default-variables/

    ------------------------------
    George Ganahl GCP (PureCloud) ICCE
    Principal Technology Consultant
    Genesys
    ------------------------------



  • 5.  RE: Regular expression to match with SAP Hybris

    Posted 01-02-2020 13:13
    No replies, thread closed.
    That was what I was about to say...

    You cannot modify Call.Ani. It is a system variable and is read-only.

    How are you passing the caller ID (ANI) to SAP? If you are calling a web service from Architect or creating a screen pop URL, you would use the variable (e.g., Task.strPhoneLookupValue) that holds your specially formatted value of ANI in the web service call or screen pop URL and not Call.ANI.

    ------------------------------
    Dan Fontaine
    Altivon
    ------------------------------



  • 6.  RE: Regular expression to match with SAP Hybris

    Posted 01-02-2020 13:30
    No replies, thread closed.
    @George Ganahl and @Dan Fontaine thank you very much for your feedback. New variable contains the number that i need. For the integration we are using a connector provided by softphone c4c. I?ll engage softphone team to tell them that they need to use the new variable as a Call.ani. I think they should use this variable.
    ​​​

    ------------------------------
    Sebastian Valenzuela
    CrossNet S.A.
    ------------------------------



  • 7.  RE: Regular expression to match with SAP Hybris

    Posted 01-03-2020 14:34
    No replies, thread closed.
    @George Ganahl @Dan Fontaine

    Thank you for your quick and wise responses. This helped me to solve the issue. I've passed the value and softphone did the changes and we were able to see the records in SAP.

    Thank you both.

    Best,
    SV.

    ------------------------------
    Sebastian Valenzuela
    CrossNet S.A.
    ------------------------------



  • 8.  RE: Regular expression to match with SAP Hybris

    Posted 01-03-2020 14:45
    No replies, thread closed.
    Glad to hear you have success!

    ------------------------------
    George Ganahl GCP (PureCloud), ICCE
    Principal Technology Consultant
    Genesys
    ------------------------------