Create XML File (TOS)

One Star

Create XML File (TOS)

Hi Guys,

 

I got a MainJob that runs all my other jobs. The Job is run by running the .bat via a Helper-Program written in C#. My jobs basically export data from a Salesforce Org. In my C# Program you'll have to insert your credentials, which will be forwarded to the .bat to run the jobs. My problem right now: I have one simple job which contains a tSalesforceConnection component just to check if the connection is successful. I'd like to save that into a XML file so I can restrict the user of my C# program to proceed if the connection failed. 

 

Something like this:

tSalesforce Connection ----onComponentOk----> Build XML file with <username>context.username</username> and <connection>true</connection> 

 

Is this possible? It doesnt need to be an XML file, can also be any other file that I can work with in C# to get the value of <connection>.

 

Thanks in Advance!

Regards

Ari

Community Manager

Re: Create XML File (TOS)

Hi
In the job, you can use tFixedFlowInput to customize the data which you want to log to flat or xml file, eg:
tSalesforce Connection ----onComponentOk----> tFixeFlowInput--main--tFileOutputDelimtied (log to a flat file)

on tFixedFlowInput, define these columns and set its value like
username: context.username
connection_status: "true"
...and other information...

Regards
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

Tutorial

Introduction to Talend Open Studio for Data Integration.

Watch