Announcement

Collapse
No announcement yet.

SMS send

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • SMS send

    Hi,

    This is probably a very simple problem, but somehow it doesn't work...

    It's about sending SMS out of a workflow. I set this up with my provider Sms77 and it works wonderfully.

    I use the following script in the workflow, which Espo specifies as follows:
    ---

    $body = 'Hi! This is an SMS notification from EspoCRM.';

    // Phone number is obtained from the entity.
    $phoneNumber = phoneNumber;

    $smsId = record\create(
    'text',
    'to', $phoneNumber,
    'body', $body
    );

    ext\sms\send($smsId);

    ---

    However, I would now like the variable $body not to be fixed text, but to send me 2 fields from the entity separated by a space.

    I thought I'd take care of that
    $body = fieldname1 + ' ' + fieldmane 2;

    but that doesn't work.

    How can I affect $body accordingly?​

  • #2
    $body = string\concatenate(fieldname1, ' ', fieldnam2);

    Comment


    • #3
      Works great! Thank you very much!

      Comment

      Working...
      X