go-force
go-force copied to clipboard
Query with dot notation
When using BuildQuery and Query to run a query the following query returns the expected results:
SELECT Id FROM PermissionSetAssignment
But when the query uses the dot notation for the related object there are no results:
SELECT PermissionSet.Id, PermissionSet.Name FROM PermissionSetAssignment
The structs for reference:
type PermissionSetAssignment struct {
// ID string `force:"Id"`
ID string `force:"PermissionSet.Id"`
Name string `force:"PermissionSet.Name"`
}
type PermissionSetAssignmentResponse struct {
sobjects.BaseQuery
Records []*PermissionSetAssignment `force:"records"`
}
What am i missing?