Questions?

They are answered by the XTRF community and our experts

+4

Vendor Portal API

Sancho Leath 2 years ago in API updated by Jussi Rautio 2 years ago 2

Question for all you API users. Based on https://xtrf.target-languages.com/api/doc/ API commands are not yet available for the Vendor Portal. Have you found any workarounds (scripted jobs, etc.) to pull data from the Vendor Portal?


Example: We would like to access the memoQ Handoff Package in the Home Portal. Currently it is only available on the Vendor Portal. Until XTRF makes that data package available in HP, we would have to use some automated workaround to give our PMs a break.


This is the end game we have in mind:

Create a Scripted Job in XTRF with the following actions as each T or R1 job is started:

- download and copy memoQ Handoff package from VP to corresponding HP project

- unzip this package and add contents of ProjectTM and ProjectTB subfolders to the started job as Reference Files


This way, we can finally have a workaround for all those vendors who do not use memoQ and rely on Project TM (.tmx) and TB (.csv) as additional reference material for the job. To make it more sophisticated the Scripted Job can be conditional based on the CAT tool entry in the vendor profile.


+4

Please share an experience of the use of API

Svitlana (Proftranslation LSP) 2 years ago in API updated by Dennis Rosenbaum 2 years ago 20

Anyone use the access to API?
If so, could you please share an experience? For what purpose, what have you achieved with it, etc.?

+2

OCR program connected to XTRF via API

Monika 5 months ago in API updated by Bartosz Budzyński 3 months ago 9

Hello, I wanted to ask if anyone was already thinking about connecting any OCR tool to XTRF via API? So it could work as an automatic action, and import for example a PDF and export editable format, like Word or HTML, etc?

I would be very grateful for any tips.

Thanks,

Monika

+1

How to get details (unit, quantity, price) from customer invoice api?

erika.hohn 6 months ago in API updated by mark 3 months ago 9

I can't get details about the jobs using customer invoice api. I need information as unit, quantity and price and not only the total gross.

+1

XTRF removes umlauts in memoQ project names

Jason Esch 8 months ago in API updated 7 months ago 2

When creating memoQ projects in XTRF, we've noticed that it strips the project name of accents/umlauts, but only in the project name in the PM dashboard, not in the project name in the segment metadata.

For example, we type 190301: Kunden A Geschäftsbericht 2018 | Ergänzungen in XTRF, which shows up in the PM dashboard in memoQ as 190301 - Kunden A Geschaftsbericht 2018 _ Erganzungen, but is 190301 - Kunden A Geschäftsbericht 2018 _ Ergänzungen in the segment metadata field "Project". All three are different


This makes searching for individual project TMs in the master TM in memoQ almost impossible because the TM editor requires the full project name as it appears in the segment metadata for the filter to work. 


memoQ think that XTRF strips the accents/umlauts intentionally because memoQ itself is capable of handling accents in the project name. Is there any way to prevent this? (At least until memoQ provide keyword searching in the TM editor filter dialogue.)

+1

API Connection Advise

Michal Shinitzky 2 years ago in API 0

Hello,

We are trying to establish a connection to XTRF's API.

We have tried first with the DEMO portal:http://xtrf.github.io/cp-api/demo/create-project.html but for some reason we get an error that we have no idea what causes it.

When we reach stage 3B - we got the following error:

"An error occurred while sending quote. Please check if API is online and if all files are not null." Can you advice what are we doing wrong?

I'll be also happy if someone, with experience with XTRF API connection can contact us to help us with establishing the first few steps.


thanks!

+1

Sending commands through the API

Dennis Rosenbaum 2 years ago in API 0

Hi,

I would like to know whether it is possible to execute Commands so that I can edit SMART projects the same way the XTRF code base does.

The javadocs don't cover all the Commands, neither does the API. As I do understand it would be a lot of work to make all the Commands available as a specific implementation. But it would be of real great use to execute a Generic Command.
Maybe for a command like this:

MarkQuoteAsSentCommand(INIBY7QGPJBJLPF5MFJXRRKHCA):    

Executing the command as an API call like so: {apiUrl}/commands/{command-name}?arg[0]={argument0}&arg[1]={argument1}
So for this specific example: {apiUrl}/commands/MarkQuoteAsSentCommand?arg[0]=INIBY7QGPJBJLPF5MFJXRRKHCA


This way you don't need to provide full documentation nor creating a whole new interface layer for all commands. We could just look up the commands within the logs and execute them in this generic way.


Kind regards,

Dennis Rosenbaum

+1

API or Library(C#) avilable to integrate CRM with XTRF

Avinash 2 years ago in API updated by Dennis Rosenbaum 2 years ago 2

Hello ,I want to integrate my CRM with XTRF using API or Library so is this possible? if Pssoible then tell me api or Library name for intrgration 

0

Create receivables for "classic project" via API

milos 3 weeks ago in API 0

Hi, 

it seems that there is no way of creating new receivables via API for the CLASSIC project? Or Im missing something in your documentation

0

Cannot remove a CAT receivable through the API

Dennis Rosenbaum 2 months ago in API 0

Hi,

I'm trying to remove all the receivables through the API.
This is the process that I use:

  1. Retrieve the Receivable ID's through a Macro (for my quote, it shows '461')
    #set($receivableIds = $utils.createNewArrayList())
    #foreach($quote in $list)#*
        *##foreach($task in $quote.tasks)#*
            *##foreach($receivable in $quote.getTaskFinance($task).getAllReceivables())#*
            *##set($temp = $receivableIds.add($receivable.id))#*
            *##end#*
        *##end
    #end
    #foreach($receivableId in $receivableIds)$receivableId,#end
  2. Verify this result by checking the quote itself:
    onmouseover="xhp.task.receivables.open(461, true, false);"
  3. Execute the API call
    DELETE /api/v2/quotes/4YTI6WVKGRE2ZLXJ5KG3GGAJ24/finance/receivables/461 HTTP/1.1
  4. This fails with this message:
    {"status":400,"errorMessage":"No receivable with id: 461 for quote with id: 4759","detailedMessage":null}

When I add a regular receivable, it does work. Only with the CAT receivables it doesn't work.

Is it possible to be fixed? Or am I doing something wrong?

Kind regards,
Dennis Rosenbaum