1

Make/Integromat doubt

I need to automate a process with Make and I have a problem. I have created a Yes/No field and from Make I´m able to modify it.

In this field I have written a code in Trigger after the change like this:

if Yes then

    let mySlides := (select 'Slides V2' where 'End Date' < today() and 'Billing Status' = 1);

    for i in my Slides do

        let myName := i.Labs.'Laboratory name' + "-" + i.'Proforma number';

        i.(Image := importFile(i, printAndSaveRecord(i, "Proforma"), myName + ".pdf"))

    end

end

This action works perfectly if I make the modification manually but not when it is done by Make.

If I include more instructions such as creating records and filling them in, it also does it, but not the part of printing and saving a template.

What I can do?

 

 

4 replies

null
    • Ninox partner
    • RoSoft_Steven.1
    • 1 yr ago
    • Reported - view

    Antonio  Can you try with the code put between

    do as server

    <your code>

    end

    and see if this works?

    • Antonio
    • 1 yr ago
    • Reported - view

    Thanks RoSoft_Steven but I've already tried that option.

      • Ninox partner
      • RoSoft_Steven.1
      • 1 yr ago
      • Reported - view

      Antonio also I see in your code for i in my Slides do with a space. Is it like that in your database? It should be for i in mySlides do without the space... but I guess it's a typo on this forum... 

      Maybe anyone else have an idea?

    • Nick_Massie
    • 1 yr ago
    • Reported - view

    Printing is not allowed after triggers.  Maybe this is it because of the printAndSave Record

Content aside

  • 1 Likes
  • 1 yr agoLast active
  • 4Replies
  • 95Views
  • 4 Following