Hi @Vitaly_Galchenko
Welcome to the community
For files that are not stored in Pipedrive, you would notice two relevant parameters remote_location and remote_id
You need to access the file in Google Drive via Drive APIs using the remote_id value. Unfortunately, the direct download functionality via Pipedrive API (for files stored outside) is not available at the moment
//save the file by using base name
if(file_put_contents( $file_name,file_get_contents($downloadurl))){
echo “File downloaded successfully!”;
}else{
echo “File downloading failed!”;
}