• Pradeep Satpute 8
  • NEWBIE
  • 0 Points
  • Member since 2023

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 6
    Questions
  • 1
    Replies
Hi Team,
We have requirement to use apex SDK for OneSpan sign and apex SDK is new for me is there any refrance what is apex sdk and how i can use it.
Hi 
I need to use merge fields of cpq quote in one pkg named onespan sign but i am not able to get data below i am sharing document on whoich i triedUser-added image
Hi,
i have one custom object Documentesl in this objects attchment some document stored.I want to convert this attachment into file and upload in opportunity files.How i can do this using flow.
Hello,
i am working on cpq we have scenario that there should button on quote.on button click one span sign template should create.in conga sign we have option to upload document but dont want to upload document we need to use quote fields insted of document.how can achieve this.
 if(usr.Division =='TURF'){
                List<user>samelineofBuisnessUsers=[SELECT Id,email FROM User WHERE IsActive = true AND(Division =:usr.Division) AND(Id !=:usr.Id)];
                for(user samedivuser : samelineofBuisnessUsers){
                    sendTo.add(samedivuser.email);
                }
Hi In above code i want to add those user email in sendTo who has access on special Price object.please help how i can implement this
public class TransactionJournalAPI {
  
    @InvocableMethod(label='CreateTransactionJournal'category='TransactionJournal')
    
    public static void createJournal(List<String> jsonStrings) {
        try{
        for(String jsonString : jsonStrings) {
            List<TransactionJournalRequest> requests = (List<TransactionJournalRequest>) JSON.deserialize(jsonString, List<TransactionJournalRequest>.class);
            for(TransactionJournalRequest request : requests) {
                TransactionJournal journal = new TransactionJournal();
                journal.ActivityDate = request.activityDate;
                journal.BookingDate = request.bookingDate;
                journal.ExternalTransactionNumber = request.externalTransactionNumber;
                journal.InvoiceDate = request.invoiceDate;
                journal.JournalDate = request.journalDate;
                journal.JournalTypeId = request.journalTypeId;
                journal.JournalSubTypeId = request.journalSubTypeId;
                journal.LoyaltyProgramId = request.loyaltyProgramId;
                journal.MemberId = request.memberId;
                journal.TransactionAmount = request.transactionAmount;
                journal.Status = request.status;
                insert journal;
                system.debug('Journal'+Journal.Id);
            }
       } 
        }
            catch (Exception e) {
           System.debug('Error: ' + e.getMessage());
            }
    }

    public class TransactionJournalRequest {
        public Date ActivityDate;
        public Date BookingDate;
        public String ExternalTransactionNumber;
        public Date InvoiceDate;
        public Date JournalDate;
        public Id JournalTypeId;
        public Id JournalSubTypeId;
        public Id LoyaltyProgramId;
        public Id MemberId;
        public Decimal TransactionAmount;
        public String Status;
    }
}

This is my apex class which i am using custom action but when i am passing data through postman its giving me an error please help me in json

{
  "inputs": [
    {"ActivityDate":"2022-01-01",
    "BookingDate":"2022-01-01",
    "ExternalTransactionNumber":"12345",
    "InvoiceDate":"2022-01-01",
    "JournalDate":"2022-01-01",
    "JournalTypeId":"01234567890abcdef",
    "JournalSubTypeId":"01234567890abcdef",
    "LoyaltyProgramId":"01234567890abcdef",
    "MemberId":"01234567890abcdef",
    "TransactionAmount":100.0,
    "Status":"Completed"
    }
  ]
}
I am getting following error in postman
[
    {
        "actionName": "TransactionJournalAPI",
        "errors": [
            {
                "statusCode": "INVALID_INPUT",
                "message": "An invalid input parameter was specified for Apex action TransactionJournalAPI: ActivityDate",
                "fields": []
            }
        ],
        "isSuccess": false,
        "outputValues": null
    }
]
 if(usr.Division =='TURF'){
                List<user>samelineofBuisnessUsers=[SELECT Id,email FROM User WHERE IsActive = true AND(Division =:usr.Division) AND(Id !=:usr.Id)];
                for(user samedivuser : samelineofBuisnessUsers){
                    sendTo.add(samedivuser.email);
                }
Hi In above code i want to add those user email in sendTo who has access on special Price object.please help how i can implement this