Save the date! Join us on October 16 for our Product Ops launch event. Register here.
Jun 10, 2020 11:01 AM
Hello,
I would to get the position of the column for the integration in my block : today I can see the name and id of the field : is it a way to have his position in the table ? If yes, how can we get it ? Thank you :winking_face:
Viken
Solved! Go to Solution.
Jun 15, 2020 09:50 PM
That’s pretty clear, but unfortunately like I said above, the field order isn’t available via the Scripting block API (or even the standard API to my knowledge). Your only option is to take the field names in the order that they’re provided to you, and sort/order them manually from there.
While this doesn’t get you to the result you were seeking, it’s the only option available at this time. If you would, please mark the appropriate comment as the solution to your question. This helps others who may be searching with similar questions. Thanks!
Jun 13, 2020 07:27 PM
This isn’t currently possible. While you can get the names of all fields from a table
item, the docs explicitly state that the order is arbitrary because “fields are only ordered in the context of a specific view.”
Would you be able to share more about why you want to retrieve the field position? Perhaps there’s another way to approach the problem you’re trying to solve.
Jun 14, 2020 03:58 AM
Hello Justin,
My need was the following :
Let me know if it is not clear and need more description.
Thank you !
Jun 15, 2020 09:50 PM
That’s pretty clear, but unfortunately like I said above, the field order isn’t available via the Scripting block API (or even the standard API to my knowledge). Your only option is to take the field names in the order that they’re provided to you, and sort/order them manually from there.
While this doesn’t get you to the result you were seeking, it’s the only option available at this time. If you would, please mark the appropriate comment as the solution to your question. This helps others who may be searching with similar questions. Thanks!