Description Usage Arguments Details Value Author(s) Examples
attachFile Attaches a file to entity identified by barcode.
Note: This function uses the JSON API to post a file to an entity and
Odata to post to an attribute.
1 2 | attachFile(coreApi, entityType, barcode, filePath,
targetAttributeName = "", ...)
|
coreApi |
coreApi object with valid jsessionid |
entityType |
PFS entity type |
barcode |
User provided barcode as a character string |
filePath |
path to the file to attach |
targetAttributeName |
- if included the name if the attribute to attach the file to. Must be in all caps. |
... |
additional arguments passed to |
attachFile Attaches a file to an entity or file attribute.
List of length 2, containing content and response objects:
content is the HTTP response content. If targetAttributeName
is not empty, content will return as NULL.
response is the entire HTTP response. If fullReturn is FALSE
will return as NULL.
Craig Parman info@ngsanalytics.com
Adam Wheeler adam.wheeler@thermofisher.com
Scott Russell scott.russell@thermofisher.com
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## Not run:
api <- coreAPI("PATH TO JSON FILE")
login <- authBasic(api)
modifiedItem <- attachFile(login$coreApi,
entitytype,
barcode,
filePath,
targetAttributeName = "",
useVerbose = FALSE
)
logOut(login$coreApi)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.