This content has been marked as final. Show 2 replies
I have a lookup function that does not seem to be working. I am pulling the data from salesforce for Task and User objects:
Below is the script:
Id as "TaskID",
OwnerId as "Task Owner ID",
//AccountId as "Account ID",
Subject as "Deal Support Type",
WhatId as "Opportunity ID",
if(Len(Trim("WhatId"))>0,1,0) as "DealSupportflag",
Date(CreatedDate) as "Task Created Date",
Year([CreatedDate])& Dual('Q' & Ceil(Month([CreatedDate])/3), Ceil(Month([CreatedDate])/3)) as "Task Created Quarter",
Description as "Task Description",
Lookup('Name','OwnerId',[OwnerId],'Owner') as "Task Assigned Name"
FROM [lib://Salesforce QVD/Task.qvd]
Id as OwnerId,
User_Theater__c as "User Theater",
User_Theater__c as "Theater",
UPPER(User_Theater__c) as "USERTHEATER",
User_Sales_Region__c as "User Sales Region",
User_Sales_Sub_Region__c as "User Sales Sub-Region",
User_Sales_Group__c as "User Sales Group",
FROM [lib://Salesforce QVD/user.qvd]
When I try to pull the "Task Assigned Name" field in my dashboard, it does not return any data(names of the Task assigned to). Where am I going wrong?
Can you help!