Report Names

More
1 year 11 months ago - 1 year 11 months ago #24022 by prashant
Hellos,

Short Question 
How to define File Name , when we the only parameter being provided is logID
suppose we want the file name to be candidate_ID , do I then use URL logger to pass another parameter o while activating package or  there is another way 

Long Question
This is in context to  www.etl-tools.com/forum/advanced-etl-pro...ages-to-reports.html

We use below SQL to define the table , and the only parameter we provide in package is  id  using, begin  SetVariable('<EventId>',CommandLineParameter(2));  Result:=True; end;

DECLARE @json NVarChar(max)
select top 1 @json=text_field_02 from event_log 

select * from OpenJson(@json)
WITH ("candidate _ID" VARCHAR(100) '$."candidate _ID"',
"name" VARCHAR(100) '$.name',
"mobile" VARCHAR(100) '$.mobile',
"related_recruiter" VARCHAR(100) '$.related_recruiter',
"is_filled_by_recuriter" VARCHAR(100) '$.is_filled_by_recuriter',
"resume" VARCHAR(100) '$.resume',
"parent_entry_id" VARCHAR(100) '$.parent_entry_id',
"recruiter_email" VARCHAR(100) '$.recruiter_email',
"recruiter_name" VARCHAR(100) '$.recruiter_name',
"join_date" VARCHAR(100) '$.join_date',
"recruiter_code" VARCHAR(100) '$.recruiter_code'
)

 
Last edit: 1 year 11 months ago by prashant.
The following user(s) said Thank You: Peter.Jonson

Please Log in or Create an account to join the conversation.

More
1 year 11 months ago - 1 year 11 months ago #24024 by prashant
Replied by prashant on topic Report Names
As of now, I can get this to work by reading from JSON. Again the question is , is there a better / more efficient way

Script changes to 
begin  SetVariable('<EventId>',CommandLineParameter(2));  SetVariable('<offerid>',CommandLineParameter(3));  Result:=True; end;

File Name changes to <offerid>.pdf

URL Logger script singular change to 
const parameters = [objectId,logId,body["{{candidate_id}}"]];  
Last edit: 1 year 11 months ago by prashant.

Please Log in or Create an account to join the conversation.

More
1 year 11 months ago #24029 by Peter.Jonson
Replied by Peter.Jonson on topic Report Names
I think you are doing everything correctly

Peter Jonson
ETL Developer

Please Log in or Create an account to join the conversation.

Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Read more
Marketing
Set of techniques which have for object the commercial strategy and in particular the market study.
Google
Accept
Decline
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Google Analytics
Accept
Decline
Functional
Tools used to give you more features when navigating on the website, this can include social sharing.
Advertisement
If you accept, the ads on the page will be adapted to your preferences.
Google Ad
Accept
Decline
Save