custom field formula to access a file via the inte...
# ask-stanley-ai
i
custom field formula to access a file via the internalId
c
AI generated answer (using internal Slack threads):
****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ****** To access a file via the internalId in a custom field formula, you would typically use the internalId field of the file object. However, it seems like you're trying to access the internalId of a file that's populated in a custom field of a document type, and you're getting the filename (e.g., abc.pdf) instead of the internalId. Unfortunately, based on the conversations provided, it doesn't seem like there's a straightforward way to get the internalId of a file from a custom field using a formula. The internalId of a file can be accessed directly from the file object, but not from a custom field that references the file. One workaround suggested in the conversations is to create a new instance of a saved search with the type set to Document, and then check if there's an internalId field available in the saved search. However, this might not be feasible if you're restricted to using a formula field in a workflow action script. Another suggestion is to manually find a file by its internalId by opening any file from the file cabinet, clicking edit, and then replacing the current file id in the address bar with the internalId of the file you're looking for. However, this method is manual and might not be suitable if you need to access the internalId programmatically. In conclusion, it seems like there's no direct way to get the internalId of a file from a custom field using a formula based on the provided conversations. You might need to consider alternative approaches or workarounds.
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.846501112
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.809241772
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.805925965
Please provide your feedback on this answer.
i
formal to get a file