Tag: apex
How to retrieve User.IsPortalEnabled info from CreatedBy field on a object like Feed Item using Apex and SOQL in Salesforce
The syntax for polymorphic queries doesn’t require the relationship name You have: SELECT Id, TYPEOF CreatedBy WHEN User THEN Created.Name, Created.IsPortalEnabled END FROM Feeditem You can use: SELECT Id, TYPEOF…
soql malformed in REST API on where clause for useremail
while running this code in anonymous window getting the error below String useremailaddress=”test@test.com“; HttpRequest req = new HttpRequest(); String query=’SELECT+id+,+uuid__c+from+User+WHERE+Username=”+useremailaddress; req.setEndpoint(“callout:salesforceauthnam/services/data/v56.0/query?q=’+query); req.setMethod(‘GET’); Http http = new Http(); HTTPResponse resp =…
amazon web services – Performing mTLS for a Go HTTP API running in AWS Lambda – Stack Overflow
Currently have a Go HTTP API using the github.com/gin-gonic/gin library set up to perform mTLS, like so: router := gin.New() router.GET(“/ping”, handlers.GinHandler{GC: globalConf, H: handler.Ping}.Handle()) // I’m checking errors but…