• vishala
  • NEWBIE
  • 0 Points
  • Member since 2010

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 11
    Questions
  • 12
    Replies

Trying to query the ActorId from Steps, but getting null

 

Trigger getApprover on customObj__c(before Update){

 

List<customObj__c> test=Trigger.new;

 

processInstances = [select (select ActorId,OriginalActorId from Steps order by CreatedDate desc)
                                        from ProcessInstance where TargetObjectId =: test[0].Id];

Id Qid  = processInstances[0].Steps[0].OriginalActorId;

 

test2=[Select Queue.Name from QueueSobject where QueueId =: Qid];

 

}

 

Qid is null, when I am trying to submit a record for approval,

throughing an error: List has no rows for assignment to Sobject.

Why is that subquery results are blank.

Any help would be appreciated to fetch the ActorId for that Process Instance.

 

Thanks,

Vishala

Hi All,

 

I have an interface requirement with external system, and trying to achieve using CLI and FTP server, meanwhile I have few questions on them, please clear them if you know

 

1. what is the difference between CLI and CLIQ

2. Can we schedule CLIQ like CLI

3. Is there any feature available to recieve an email notification if the data load fails for some reason.

4. Do we have any reference to configure CLI and run it in windows7 by following those steps.

 

Thanks

Vishala.

Hi,

 

I have a batch class which generates a .csv files when it is run. This file needs to be sent to an FTP server, so that it can picked by clarify system.

please give suggestions on how to send the generated .csv file in batch class, to the FTP server.

 

Thanks

Vishala

Hi All,

 

I have created 2 VF pages and a controller which is the same for both the pages.

From the second VF page I am redirecting it to standard page of the object, when the user clicks on button go.

Page is getting redirected but the URL is being the same of the previous VF page,( from which it has been redirected)  because of which my Submit for Approval is not functioning.

Is there anyway to change the URL of the standard page gets refereshed correctly when the page loads.

In code:

return (new PageReference('/'+id));

After the pageredirects to the standard page the URL on the address bar is:

https://c.visual.force.com/apex/helloworld?param1=a3kv0000000000E

 

Please let me know if in anyway the URL can point to the correct page.

 

Thanks,

vishala.

 

Hi,

 

I have created a VF page where I am retreiving all the product records and displaying them, name as outputtext and one customfield on it as inputtext. As there are multiplr rows, I am not be to set or read these values and assign to the  object.

 

please help me how it can be achieved.

 

sample code:

 <apex:pageblock title="Products page under development ">
 <apex:dataTable value="{!Products}" var="prodIds" >
        <apex:column >

 <apex:inputCheckbox id="pSelect" value="{!prodIds.SelectCK__c}"/></apex:column>

<apex:column ><apex:OutputText value="{!prodIds.Name}"  /></apex:column>

 <apex:column ><apex:InputText id="pQuant" value="{!prodIds.Quantity__c}"/></apex:column>

</apex:dataTable>

 

how to set the values of inputtext  to the obj in the controller.

 

Thanks,

vishala.


 

Hi All,

 

Have anyone used any automation tool for running the testscripts of CustomApp (Sites) which is developed.

Please provide me some pointers for achieving the above.

 

Thanks,

Vishala.



 

Hi All,

 

Have anyone used any automation tool for running the testscripts of CustomApp (Sites) which is developed.

Please provide me some pointers for achieving the above.

 

Thanks,

Vishala.

Hi,

We have implemented pagination, and is working fine. but unable to get the current page getting highlighted.

 

<apex:actionRegion >
             <apex:variable value="{!1.0}" var="pageCount"/>
              <apex:outputText rendered="{!results1.size <> 0}">Page:</apex:outputText>
                            <apex:repeat value="{!results1}" var="V" rows="{!CEILING(results1.size / pageSize)}">
                                            <apex:commandLink value="{!floor(pageCount)}" action="{!Test}"> &nbsp; 
                                                       <apex:param value="{!floor(pageCount)}" name="intParam"  assignTo="{!PN}" />
                                            </apex:commandLink>
                                            <apex:variable value="{!pageCount + 1}" var="pageCount"/>
                              </apex:repeat>
</apex:actionRegion>


We are trying open an outlook on click of a button. Trying to attach an email template in the variable body, is there anyway to do it.

 

{!REQUIRESCRIPT("/soap/ajax/19.0/connection.js")}

var subject = "Sub:{!Case.Contact}"

var body ={!$ObjectType.EmailTemplate};

window.location.href = "mailto:?body='+body+"&subject="+subject;

Hi,

 

I have salesforce to salesforce connection established between two different instances, and sharing the Contact records, planning to write a trigger which will implements this sharing of records between salesforce to salesforce using External sharing programatically.

 

Could anyone please let me know if that could be done.

Hi all,

 

I have firefly installed in my desktop, need help how to publish it in salesforce. I have seen sparkstudio tab and sparks in salesforce.com, how do we get them into our developer edition,  do we have any free evaluation license or do we need to buy it, what is the process.

 

Please .......help me on this.

Hi All,

 

I have an interface requirement with external system, and trying to achieve using CLI and FTP server, meanwhile I have few questions on them, please clear them if you know

 

1. what is the difference between CLI and CLIQ

2. Can we schedule CLIQ like CLI

3. Is there any feature available to recieve an email notification if the data load fails for some reason.

4. Do we have any reference to configure CLI and run it in windows7 by following those steps.

 

Thanks

Vishala.

Hi All,

 

I have created 2 VF pages and a controller which is the same for both the pages.

From the second VF page I am redirecting it to standard page of the object, when the user clicks on button go.

Page is getting redirected but the URL is being the same of the previous VF page,( from which it has been redirected)  because of which my Submit for Approval is not functioning.

Is there anyway to change the URL of the standard page gets refereshed correctly when the page loads.

In code:

return (new PageReference('/'+id));

After the pageredirects to the standard page the URL on the address bar is:

https://c.visual.force.com/apex/helloworld?param1=a3kv0000000000E

 

Please let me know if in anyway the URL can point to the correct page.

 

Thanks,

vishala.

 

Hi All,

 

Have anyone used any automation tool for running the testscripts of CustomApp (Sites) which is developed.

Please provide me some pointers for achieving the above.

 

Thanks,

Vishala.



 

Hi All,

 

Have anyone used any automation tool for running the testscripts of CustomApp (Sites) which is developed.

Please provide me some pointers for achieving the above.

 

Thanks,

Vishala.

Hi,

We have implemented pagination, and is working fine. but unable to get the current page getting highlighted.

 

<apex:actionRegion >
             <apex:variable value="{!1.0}" var="pageCount"/>
              <apex:outputText rendered="{!results1.size <> 0}">Page:</apex:outputText>
                            <apex:repeat value="{!results1}" var="V" rows="{!CEILING(results1.size / pageSize)}">
                                            <apex:commandLink value="{!floor(pageCount)}" action="{!Test}"> &nbsp; 
                                                       <apex:param value="{!floor(pageCount)}" name="intParam"  assignTo="{!PN}" />
                                            </apex:commandLink>
                                            <apex:variable value="{!pageCount + 1}" var="pageCount"/>
                              </apex:repeat>
</apex:actionRegion>


Hi,

I have displayed the total available pages with help of 'commandLink' and on the 'Click' event of that i am displaying the records of that page.

Now, i want to apply particular color to that commandLink which is 'clicked' by the user so as to differentiate from others.

Code is as follow. Any pointers on this will be helpful.

Code:
<apex:repeat value="{!valuesForPageNumber}" var="page" id="theRepeat" >
    <apex:commandLink value="" onClick="setLink({!page})" action="{!paginationLink}" >
           <apex:outputText value="{!page}"/>
    </apex:commandLink>&nbsp;&nbsp;
</apex:repeat>

 

Yash