Skip to content

Unable to query due to FORMAT #78

@ndemers6201

Description

@ndemers6201

I created a grid based on Opportunity and want to display a custom Account field
Account.Credit_Limit__c (which is a field type of Currency)

But the query created by this tool uses FORMAT(Account.Credit_Limit__c) with the alias Account.Credit_Limit__cFormatted

I believe this alias is the issue because when I run the entire query in developer console, I get this error:
invalid alias: Account.Credit_Limit__cFormatted

The entire query is here:
SELECT Account.Name,Name,Amount,FORMAT(Amount) AmountFormatted,tolabel(StageName),Account.Credit_Limit_Notes__c,Account.Credit_Limit__c,FORMAT(Account.Credit_Limit__c) Account.Credit_Limit__cFormatted FROM Opportunity WHERE Account.Credit_Limit_Notes__c = 'Notes for testing' ORDER BY Id ASC NULLS FIRST limit 10 offset 0

QUESTION: How can I define this field within the grid Account.Credit_Limit__c so that the query does not format and alias in the SOQL? I cannot change the field type on the Account object itself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions