go-force icon indicating copy to clipboard operation
go-force copied to clipboard

Query with dot notation

Open kldeb opened this issue 7 years ago • 0 comments

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?

kldeb avatar May 02 '18 19:05 kldeb