Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
EV89
Contributor III
Contributor III

polymorphic relationship talend soql tsalesforceInput

Legend

salesforce object

salesforce field

 

Hello,

 

is possible change schema of tSalesforceInput for retrieve polymorphic relationship information?

 

i'll try to explain better:

I need to extract from salesforce some attachment information. One information is about the type value of the parentId lookup.

 

I can perform this query "select id, createddate, parent.type from attachment"

in workbench or use parent.type in salesforce connector in the where conditions. But i cannot retrieve parent.type as field.

 

I have already try to add parent_type (replace dot with underscore) field in the connector schema and i had retrieved invalid_field error.

 

 

P.s

( parent.type possible values can be "invoice, log, ecc ecc")

( ParentId is a lookup to different salesforce object)

 

thanks for your help

Labels (2)
1 Solution

Accepted Solutions
EV89
Contributor III
Contributor III
Author

The solution is after have add the new column in the schema, flag "manual query" in basic view and insert the custom query.

 

See the following link, the Extracting data from a Salesforce database using the SOQL query scenario:

 

https://help.talend.com/reader/nR_huYVmZw4f~cGht7mCqw/X7MJey9lmcq9d9WPPQPdZw

 

 

Curious topic:

It Is curious about the example that the column in the schema seems work without be compliant with the

NameofCurrentObject_NameofLinkedObject_NameofColumnofInterest path.

 

See attachment file for real working case.

 

P.s also "SELECT Id, Name, IsDeleted, Account.Name FROM Contact" query works.

 

 

 

 

View solution in original post

1 Reply
EV89
Contributor III
Contributor III
Author

The solution is after have add the new column in the schema, flag "manual query" in basic view and insert the custom query.

 

See the following link, the Extracting data from a Salesforce database using the SOQL query scenario:

 

https://help.talend.com/reader/nR_huYVmZw4f~cGht7mCqw/X7MJey9lmcq9d9WPPQPdZw

 

 

Curious topic:

It Is curious about the example that the column in the schema seems work without be compliant with the

NameofCurrentObject_NameofLinkedObject_NameofColumnofInterest path.

 

See attachment file for real working case.

 

P.s also "SELECT Id, Name, IsDeleted, Account.Name FROM Contact" query works.