Quantcast
Channel: Jitendra's Blog - Latest Comments
Viewing all 2057 articles
Browse latest View live

Re: Send Email with Generated PDF as attachment from Trigger

$
0
0

Can you please explain more about your requirement ?


Re: Salesforce + Git + Eclipse + EGIT = Better and Distributed Source Control

$
0
0

Thats right, every branch has unique URL, you just need to use that URL.

Re: Send Email with Generated PDF as attachment from Trigger

$
0
0

I'm trying to create a visualforce email template that would display pictures the users took, (attached to a custom object, using chatter files) I figured out how to pull images from 'Notes and Attachments' but I can't figure out how to get the images from chatter files. Here is the code I used in the email template that worked for
attachments:
<apex:repeat value="{!relatedTo.NotesAndAttachments}" var="at">
<div align="left"><apex:image url="/servlet/servlet.FileDownload?file={!at.Id}" height="100px" width="200px"/></div>
</apex:repeat>

Any ideas?

Re: Send Email with Generated PDF as attachment from Trigger

$
0
0

This will work:

SELECT ContentDocument.LatestPublishedVersionId FROM ContentDocumentLink WHERE LinkedEntityId = :selectedId

then

<img src="/sfc/servlet.shepherd/version/renditionDownload?rendition=THUMB720BY480&amp;versionId={!file.ContentDocument.LatestPublishedVersionId}" alt="Click to preview" class="contentThumbnail" title="Click to preview" id="ext-gen7"/>

To download the actual content, the URL is

/sfc/servlet.shepherd/version/download/{!file.ContentDocument.LatestPublishedVersionId}

Note: /sfc/servlet.shepherd is not officially supported or documented. This functionality can change without warning from release to release.

Re: Pagination, Searching and Sorting of Data Table using AngularJS

$
0
0

Hello Jitendra sir,
I have used the above code given by you.It is displaying the table structure but,my problem is: it is not displaying the dummy data into table.
I have included all the pre-requisite files that you mentioned.Hope for reply
Thanks i advance..!!

Re: Send Email with Generated PDF as attachment from Trigger

$
0
0

Thanks for responding. I'm getting the error "Unknown property 'core.email.template.EmailTemplateComponentController.file'"

I'm very new at visualforce so I'm sure I'm doing something wrong when trying to create the email template:
Here is what I changed

<apex:panelgrid columns="1" columnclasses="left,right" width="100%">
List<contentdocumentlink> shares = [SELECT ContentDocument.LatestPublishedVersionId FROM ContentDocumentLink WHERE LinkedEntityId = :selectedId];
</contentdocumentlink>
<div align="left"><apex:image url="/sfc/servlet.shepherd/version/download/{!file.ContentDocument.LatestPublishedVersionId}"/></div>
</apex:panelgrid>
</messaging:emailtemplate>

Re: Using Dataloader and ANT to backup Salesforce data on FTP server – Video

$
0
0

Hi Jitendra, I want it to extract only the records that have been modified (or created) since this process ran the last time.How can we achieve this? Can you please help?

Re: Using Dataloader and ANT to backup Salesforce data on FTP server – Video

$
0
0

Hi Rohit, You can save current process running time in some txt file using ANT, then reaf file and assign to ANT variable and use this ANT variable in SOQL query.


Re: Tutorial of Command line DataLoader – Salesforce

$
0
0

Hello everybody!

@Jitendra Zaa, how can I create a .bat file to run 5000k select queries in dataloder cliq?

I have a list (excel) with the 5000k queries but now I need to create a process to run this 5000 queries at once.

Can you please help me?

Thank You very much in advance,

Ricardo.

Re: Tutorial of Command line DataLoader – Salesforce

$
0
0

Hi,

"Error loading parameter: sfdc.password of type: java.lang.String"

I don't understand, i have copied the whole config.properties.

I have tested my encrypted passwords with encrypt.bat -v generatedPassword secretKey

I must say that if i don't use config.properties but only process-conf.xml with the goods parameters It works...

Any help would be appreciated.

Thanks !

Re: Tutorial of Command line DataLoader – Salesforce

Re: Tutorial of Command line DataLoader – Salesforce

Re: Tutorial of Command line DataLoader – Salesforce

Re: Tutorial of Command line DataLoader – Salesforce

$
0
0

Wow.. I am not sure what is your business justification. But you can use ANT to iterate 5000k times to your Dataloader command and execute one after another, However be ready that it may take days to execute depending on your data. You can refer this article to know how to use ANT with dataloader : http://www.jitendrazaa.com/blo...

Re: Tutorial of Command line DataLoader – Salesforce

$
0
0

Thank you.

Yes, I know that it will take a long time, bur it is only a sample (100 rows for each 5000 fields).

Is it something like this?:

target name="all">

96 <export_account 97="" file="Account_backup-${todayDate}" 98="" object="Account" 99="" soql="Select Id, Name,Status__c from Account WHERE CreatedDate &gt; " 100="" username="${sf.prod.profileName.username}" 101="" password="${sf.prod.profileName.password}" 102="" serverurl="${sfProd.serverurl}" 103="" batchsize="200" 104="" limit="1000"/>


Re: Tutorial of Command line DataLoader – Salesforce

$
0
0

Thats right, kinda this. ANT is very powerful and you can plug bits and pieces of ANT and dataloader together to achieve your solution.

Re: Tutorial of Command line DataLoader – Salesforce

Re: AJAX Based AutoComplete Component in Salesforce Using JQuery UI and JSON

$
0
0

Hi Jitendra,

everything works like a charm for me but I need to capture the account Id somehow, so that I can use it in my controller. and I do not want to show that Account in when we search for an account?

is there any quickfix?

Re: Dynamic Report Filters in Salesforce

$
0
0

Hi Jitendra,

Thanks for this article. I have a situation where there are many BDMs for them creating the same reports but only changing the owner of the record. Eg. Open Opportunities report for many BDMs according to their opportunities. So I guess i can use dynamic filter for that. Once I create the link, how do I display that on a Dashboard so that whoever click the link will display their report on the dashboad.

Any help is appriciated,
Thanks.

Re: Dynamic Report Filters in Salesforce

$
0
0

In that case, you need to create Visualforce component for Dashboard which will compute report URL dynamically on basis of logged in User.

Viewing all 2057 articles
Browse latest View live