Search found 99 matches
- Tue Jun 16, 2020 11:25 am
- Forum: LEGACY scripting
- Topic: ninox API query Endpoint URI Encoding
- Replies: 6
- Views: 7705
ninox API query Endpoint URI Encoding
I try to make use of the query endpoint of the ninox API. https://ninox.com/de/manual/ninox-api/rest-api function verknuepfen(){ var url = "https://api.ninoxdb.de/v1/teams/uvG2423sCarz7twsCfQ/databases/e5341uvc8plac1/query"; var key = "myToken"; var json = new ByteArray("{\&...
- Sat Apr 04, 2020 2:47 pm
- Forum: LEGACY scripting
- Topic: How can I access metadata in a script?
- Replies: 3
- Views: 7106
Re: How can I access metadata in a script?
Thanks, I have read the docs but haven't found the right function. But I found a post in the forum. The function I was looking for is: job.getVariableAsString And if anybody else is struggeling with the syntax, here is my code: function jobArrived( s : Switch, job : Job ) { var orderid = job.getVari...
- Sat Apr 04, 2020 12:04 pm
- Forum: LEGACY scripting
- Topic: How can I access metadata in a script?
- Replies: 3
- Views: 7106
How can I access metadata in a script?
How can I access metadata in a script? In my flow, there will be Metadata with path "[Metadata.Text:Path="/order/id",Dataset="Order",Model="XML"]" and "[Metadata.Text:Path="/order/reference",Dataset="Order",Model="XML"]"...
- Thu Apr 02, 2020 10:19 pm
- Forum: LEGACY scripting
- Topic: List Files from a Google Drive using the GDrive API
- Replies: 1
- Views: 7003
List Files from a Google Drive using the GDrive API
How can I list all files in a specific folder of a Google Drive over the Google Drive API? I spent hours reading the documentation of the Drive API the Enfocus Code-Samples and trying stuff, I just don't get it. :( https://developers.google.com/drive/api/v2/reference In the Enfocus Docs at the very ...
- Wed Apr 01, 2020 1:22 pm
- Forum: LEGACY scripting
- Topic: How to POST a file to an API (Content-Type: multipart/formdata)
- Replies: 9
- Views: 20944
Re: How to POST a file to an API (Content-Type: multipart/formdata)
Yes! It works
Thanks a lot Padawan!
Thanks a lot Padawan!
- Wed Apr 01, 2020 9:21 am
- Forum: LEGACY scripting
- Topic: How to POST a file to an API (Content-Type: multipart/formdata)
- Replies: 9
- Views: 20944
Re: How to POST a file to an API (Content-Type: multipart/formdata)
That's the integromat flow:
- Wed Apr 01, 2020 9:20 am
- Forum: LEGACY scripting
- Topic: How to POST a file to an API (Content-Type: multipart/formdata)
- Replies: 9
- Views: 20944
Re: How to POST a file to an API (Content-Type: multipart/formdata)
Thanks for your reply Padawan. This doesn't work, I also tried putting in the filename as second argument for the "setAttatchedFile()" function. But I guess that was not what you meant with "...multipart form name..." right? function jobArrived( s : Switch, job : Job ) { filename...
- Tue Mar 31, 2020 10:54 pm
- Forum: LEGACY scripting
- Topic: How to POST a file to an API (Content-Type: multipart/formdata)
- Replies: 9
- Views: 20944
How to POST a file to an API (Content-Type: multipart/formdata)
Hello Everyone, I try to upload a file to ninox ( https://ninox.com/ ) a cloud database with a REST-API ( docs: https://ninox.com/de/manual/ninox-api/rest-api ). Content-Type must be multipart/formdata. I tried: function jobArrived( s : Switch, job : Job ) { // VIA API TO NINOX DATABASE var theHTTP ...
- Fri Mar 06, 2020 1:06 pm
- Forum: LEGACY scripting
- Topic: creating an array of objects in switch scripter
- Replies: 5
- Views: 6314
Re: creating an array of objects in switch scripter
I have managed to make it work with the push method. For every iteration of the documents I push an object for every document line to the "documentArray" Array afterwards, I can use dot notation as the ordering is always the same. Like: for (k=start; k<end; k++ ) { dokumentennummernRE.sear...
- Fri Mar 06, 2020 12:20 pm
- Forum: LEGACY scripting
- Topic: creating an array of objects in switch scripter
- Replies: 5
- Views: 6314
Re: creating an array of objects in switch scripter
Okay now its more clear to me whats going on. On the first iteration dokumentArray is: [{"bezeichnung":"FALTANWEISUNG BOGEN \r\n","nr":"2111216","version":"03"},{"bezeichnung":"SICHERHEITSINFORMATIO \r\n","nr":...
- Fri Mar 06, 2020 11:42 am
- Forum: LEGACY scripting
- Topic: creating an array of objects in switch scripter
- Replies: 5
- Views: 6314
Re: creating an array of objects in switch scripter
Gosh I missed the commas.... :roll: This works now: dokumentArray[k] = {'nr':dokumentennummernRE.cap(1), 'version':dokumentennummernRE.cap(4), 'bezeichnung':dokumentennummernRE.cap(5)}; But now I need to access the objects and I am getting "undefined member" errors. I tried: dokumentArray[...
- Fri Mar 06, 2020 11:23 am
- Forum: LEGACY scripting
- Topic: creating an array of objects in switch scripter
- Replies: 5
- Views: 6314
creating an array of objects in switch scripter
Hello, I want to create an array of objects. The result should look like this: [{'nr':'128947','version':'02','bezeichnung':'STR COLD'},{'nr':'123123','version':'05','bezeichnung':'SAM FOUR'}]; My code so far: var documentArray = []; for (k=start; k<end; k++ ) { dokumentennummernRE.search( matches[k...
- Fri Mar 06, 2020 11:05 am
- Forum: LEGACY scripting
- Topic: Get part of an API Response(JSON)
- Replies: 6
- Views: 9736
Re: Get part of an API Response(JSON)
Thanks again. Works!
- Fri Mar 06, 2020 10:22 am
- Forum: LEGACY scripting
- Topic: Get part of an API Response(JSON)
- Replies: 6
- Views: 9736
Re: Get part of an API Response(JSON)
Is there a way to make a variable global? So that I can use the id in global scope?
- Fri Mar 06, 2020 9:39 am
- Forum: LEGACY scripting
- Topic: Get part of an API Response(JSON)
- Replies: 6
- Views: 9736
Re: Get part of an API Response(JSON)
Thank you sander!
Works perfectly.
Works perfectly.