Code Monkey home page Code Monkey logo

docker-targetprocess-backup's People

Contributors

xmik avatar

Watchers

 avatar  avatar

docker-targetprocess-backup's Issues

Downloading attachments does not work

The code responsible is: https://github.com/xmik/targetprocess-backup/blob/master/download_attachments.sh#L38

We used to get name and uri of each attachment from attachments.json, but its format is different now, there is no uri:

$ cat /backup/production/local/targetprocess-latest/full/attachments.json
[{"ResourceType":"Attachment","Id":1,
"Name":"0.21307064330.2898206790427272768.1391027667f__inline__img__src",
"UniqueFileName":"0.21307064330.2898206790427272768_c7e5f075-caab-4fa7-a8ed-c37bf21e4d64.1391027667f__inline__img__src",
"Description":null,
"Date":"/Date(1411379118000-0500)/",
"Owner":{"ResourceType":"GeneralUser","Id":2,"FirstName":"Target","LastName":"Process","Login":"System"},"General":null,"Message":{"ResourceType":"Message","Id":1}},
{"ResourceType":"Attachment","Id":2, ...
]

solution

each attachment uri should now just work based on the attachment id: https://www.targetprocess.com/guide/integrations/rest-api/work-with-attachments-api/

https://your-targetprocess-application-URL/Attachment.aspx?AttachmentID=1234

Also the comments on that page say:

In order to have Uri field in the response you need to implicitly include it in the response: /api/v1/attachments?include=[uri]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.