function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Prakhyat sapraPrakhyat sapra 

related account & there related contact are not visible when the date is give in the postman using webservices????????????

i have created the connected app for integraction???

 global static List<Account> getAccountWith(){
        // List<ResponseWrapper> responseWrapperList = new List<ResponseWrapper>();
        RestRequest accountRequest = restContext.request;
        String accountRequestURI = accountRequest.requestURI;  
        Date accountLimit = Date.valueOf(accountRequestURI.substring(accountRequestURI.lastIndexOf('/')+1));
        System.debug('accountLimit'+ accountLimit);
        Date dt= accountLimit;
        System.debug('dt'+dt);
        Date myDate = date.newinstance(dt.year(), dt.month(), dt.day());
        System.debug('myDate'+myDate);
        List<Account> accountList =[SELECT id, name, CreatedDate FROM Account WHERE CreatedDate=:myDate];
        System.debug('accountList'+ accountList);
      
        return accountList;
        
    }

here is my code......